diff options
author | planetmaker <planetmaker@openttd.org> | 2014-09-30 21:10:32 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2014-09-30 21:10:32 +0000 |
commit | 3df230af629579d6c8f9fb59cc23318e17eae76c (patch) | |
tree | 7c7f7e273a87ac47c7eef0774b34dbbc9587cf9e /src | |
parent | 17cd86d76264f09d7bde59e41f8992718e968811 (diff) | |
download | openttd-3df230af629579d6c8f9fb59cc23318e17eae76c.tar.xz |
(svn r26943) -Fix: [Win32] Silence a warning about comparison of signed and unsigned variables when using gcc
Diffstat (limited to 'src')
-rw-r--r-- | src/video/win32_v.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index a7487bfb5..6e7d33b9f 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -1045,7 +1045,7 @@ static bool AllocateDibSection(int w, int h, bool force) { BITMAPINFO *bi; HDC dc; - int bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth(); + uint bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth(); w = max(w, 64); h = max(h, 64); @@ -1105,7 +1105,7 @@ static void FindResolutions() DEVMODEA dm; /* Check modes for the relevant fullscreen bpp */ - int bpp = _support8bpp != S8BPP_HARDWARE ? 32 : BlitterFactory::GetCurrentBlitter()->GetScreenDepth(); + uint bpp = _support8bpp != S8BPP_HARDWARE ? 32 : BlitterFactory::GetCurrentBlitter()->GetScreenDepth(); /* XXX - EnumDisplaySettingsW crashes with unicows.dll on Windows95 * Doesn't really matter since we don't pass a string anyways, but still |