mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Use null for PeekMessageW on Windows
This commit is contained in:
parent
d0d3ffcf7b
commit
cb0ceee910
|
@ -763,11 +763,11 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn message_loop(&self, window: windef::HWND) {
|
||||
fn message_loop(&self, _window: windef::HWND) {
|
||||
unsafe {
|
||||
let mut msg = mem::zeroed();
|
||||
|
||||
while winuser::PeekMessageW(&mut msg, window, 0, 0, winuser::PM_REMOVE) != 0 {
|
||||
while winuser::PeekMessageW(&mut msg, std::ptr::null_mut(), 0, 0, winuser::PM_REMOVE) != 0 {
|
||||
// Make this code a bit nicer
|
||||
if self.accel_table == ptr::null_mut() {
|
||||
winuser::TranslateMessage(&mut msg);
|
||||
|
|
Loading…
Reference in a new issue