diff options
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r-- | src/video/win32_v.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 673d50be1..34129fc05 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -689,8 +689,7 @@ static bool AllocateDibSection(int w, int h) if (bpp == 0) usererror("Can't use a blitter that blits 0 bpp for normal visuals"); - if (w == _screen.width && h == _screen.height) - return false; + if (w == _screen.width && h == _screen.height) return false; _screen.width = w; _screen.pitch = (bpp == 8) ? Align(w, 4) : w; @@ -822,8 +821,8 @@ void VideoDriver_Win32::MakeDirty(int left, int top, int width, int height) static void CheckPaletteAnim() { - if (_pal_count_dirty == 0) - return; + if (_pal_count_dirty == 0) return; + InvalidateRect(_wnd.main_wnd, NULL, FALSE); } |