summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-12-03 22:08:00 +0000
committermichi_cc <michi_cc@openttd.org>2012-12-03 22:08:00 +0000
commit02f39ab1ee40a5f90dc1c6b5acb11a81d0fb8ba7 (patch)
tree686cfe6964193d271894b916938a3ad80133cac7 /src
parent5d74b679e6fdaf1732843056e36f91a221443689 (diff)
downloadopenttd-02f39ab1ee40a5f90dc1c6b5acb11a81d0fb8ba7.tar.xz
(svn r24781) -Fix (r24762): [Win32] MinGW compiler warning.
Diffstat (limited to 'src')
-rw-r--r--src/video/win32_v.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 6fb8a6b9d..2caa839fa 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -293,7 +293,7 @@ bool VideoDriver_Win32::MakeWindow(bool full_screen)
GetWindowRect(GetDesktopWindow(), &r);
/* Guard against recursion. If we already failed here once, just fall through to
* the next ChangeDisplaySettings call which will fail and error out appropriately. */
- if (settings.dmPelsWidth != r.right - r.left || settings.dmPelsHeight != r.bottom - r.top) {
+ if ((int)settings.dmPelsWidth != r.right - r.left || (int)settings.dmPelsHeight != r.bottom - r.top) {
return this->ChangeResolution(r.right - r.left, r.bottom - r.top);
}
}