pass width and height information through to cef paint callback

This commit is contained in:
Mike Blumenkrantz 2015-05-18 15:37:49 -04:00
parent 9f7aacdacf
commit fb72a64833
6 changed files with 10 additions and 11 deletions

View file

@ -123,7 +123,7 @@ pub trait WindowMethods {
/// Requests that the window system prepare a composite. Typically this will involve making
/// some type of platform-specific graphics context current. Returns true if the composite may
/// proceed and false if it should not.
fn prepare_for_composite(&self) -> bool;
fn prepare_for_composite(&self, width: usize, height: usize) -> bool;
/// Sets the cursor to be used in the window.
fn set_cursor(&self, cursor: Cursor);