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