diff options
author | alberth <alberth@openttd.org> | 2011-02-25 22:04:38 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-25 22:04:38 +0000 |
commit | 31386c42a7aa51b5b6a7abfc728b9ed4e34df0ea (patch) | |
tree | 793449a253b91916b65c373f54b4544a8c6c86b8 /src/video | |
parent | 1dbc0a20bed5cd85035b4f84a649c4f7386b07ab (diff) | |
download | openttd-31386c42a7aa51b5b6a7abfc728b9ed4e34df0ea.tar.xz |
(svn r22145) -Codechange: Do explicit test for non-bool values.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/win32_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index dc230456d..62e8751d6 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -379,7 +379,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP SelectPalette(hDC, hOldPalette, TRUE); ReleaseDC(hwnd, hDC); - if (nChanged) InvalidateRect(hwnd, NULL, FALSE); + if (nChanged != 0) InvalidateRect(hwnd, NULL, FALSE); return 0; } |