mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-11 03:21:32 +11:00
Minor fixup
This commit is contained in:
parent
860f8b4f3d
commit
e83c66b8dd
|
@ -172,8 +172,7 @@ impl Minifb {
|
||||||
buffer.as_ptr() as i64);
|
buffer.as_ptr() as i64);
|
||||||
user32::InvalidateRect(self.window, ptr::null_mut(), winapi::TRUE);
|
user32::InvalidateRect(self.window, ptr::null_mut(), winapi::TRUE);
|
||||||
|
|
||||||
while user32::PeekMessageW(&mut msg, self.window, 0, 0, winapi::winuser::PM_REMOVE) !=
|
while user32::PeekMessageW(&mut msg, self.window, 0, 0, winapi::winuser::PM_REMOVE) != 0 {
|
||||||
0 {
|
|
||||||
user32::TranslateMessage(&mut msg);
|
user32::TranslateMessage(&mut msg);
|
||||||
user32::DispatchMessageW(&mut msg);
|
user32::DispatchMessageW(&mut msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue