mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-11 03:21:32 +11:00
Linux fix
This commit is contained in:
parent
900deba9a7
commit
ca264a7b9a
|
@ -233,7 +233,7 @@ impl Window {
|
||||||
mfb_set_shared_data(self.window_handle, &mut self.shared_data);
|
mfb_set_shared_data(self.window_handle, &mut self.shared_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_with_buffer(&mut self, buffer: &[u32]) {
|
pub fn update_with_buffer(&mut self, buffer: &[u32]) -> Result<()> {
|
||||||
self.key_handler.update();
|
self.key_handler.update();
|
||||||
|
|
||||||
let check_res = buffer_helper::check_buffer_size(self.shared_data.width as usize,
|
let check_res = buffer_helper::check_buffer_size(self.shared_data.width as usize,
|
||||||
|
@ -252,6 +252,8 @@ impl Window {
|
||||||
key_callback,
|
key_callback,
|
||||||
char_callback);
|
char_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update(&mut self) {
|
pub fn update(&mut self) {
|
||||||
|
|
Loading…
Reference in a new issue