diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-20 08:12:28 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-20 08:12:28 +0100 |
commit | 9486ad42e12884e2b3f40cbd76fba2cf889a416f (patch) | |
tree | ef06d9973050e353f4ea5851050348493d7137e4 /plugingui/nativewindow_win32.cc | |
parent | 97e0014cfc51d2fdbc363278a65cc36affacd51c (diff) |
Fix parent check.
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r-- | plugingui/nativewindow_win32.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index e4a1e73..d7e0e06 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -372,7 +372,7 @@ void NativeWindowWin32::hide() void NativeWindowWin32::redraw() { - if(parent_window) + if(parent_window == nullptr) { RedrawWindow(m_hwnd, nullptr, nullptr, RDW_ERASE|RDW_INVALIDATE); UpdateWindow(m_hwnd); @@ -408,7 +408,7 @@ bool NativeWindowWin32::hasEvent() } // Parented windows have their event loop somewhere else. - if(parent_window) + if(parent_window == nullptr) { MSG msg; return PeekMessage(&msg, m_hwnd, 0, 0, PM_NOREMOVE) != 0; @@ -427,7 +427,7 @@ Event* NativeWindowWin32::getNextEvent() } // Parented windows have their event loop somewhere else. - if(parent_window) + if(parent_window == nullptr) { MSG msg; if(GetMessage(&msg, m_hwnd, 0, 0)) @@ -456,7 +456,7 @@ Event* NativeWindowWin32::peekNextEvent() } // Parented windows have their event loop somewhere else. - if(parent_window) + if(parent_window == nullptr) { MSG msg; if(PeekMessage(&msg, m_hwnd, 0, 0, PM_NOREMOVE)) |