summaryrefslogtreecommitdiff
path: root/src/video/win32_v.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-06-27 20:53:45 +0000
committeralberth <alberth@openttd.org>2009-06-27 20:53:45 +0000
commit9b070b5405d11c74d89a747e912e627e39850f7c (patch)
tree5143dbacaa7e860b2253b091bd195f4e2d287efc /src/video/win32_v.cpp
parent812ad41f23b7ed52a161ed15b15a2af3a7edb41f (diff)
downloadopenttd-9b070b5405d11c74d89a747e912e627e39850f7c.tar.xz
(svn r16677) -Codechange: Dimension width and height are unsigned.
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r--src/video/win32_v.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index d3adb5723..b5e79b493 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -738,7 +738,7 @@ static void FindResolutions()
uint j;
for (j = 0; j < n; j++) {
- if (_resolutions[j].width == (int)dm.dmPelsWidth && _resolutions[j].height == (int)dm.dmPelsHeight) break;
+ if (_resolutions[j].width == dm.dmPelsWidth && _resolutions[j].height == dm.dmPelsHeight) break;
}
/* In the previous loop we have checked already existing/added resolutions if
@@ -776,7 +776,7 @@ const char *VideoDriver_Win32::Start(const char * const *parm)
FindResolutions();
- DEBUG(driver, 2, "Resolution for display: %dx%d", _cur_resolution.width, _cur_resolution.height);
+ DEBUG(driver, 2, "Resolution for display: %ux%u", _cur_resolution.width, _cur_resolution.height);
/* fullscreen uses those */
_wnd.width_org = _cur_resolution.width;