From 3df230af629579d6c8f9fb59cc23318e17eae76c Mon Sep 17 00:00:00 2001 From: planetmaker Date: Tue, 30 Sep 2014 21:10:32 +0000 Subject: (svn r26943) -Fix: [Win32] Silence a warning about comparison of signed and unsigned variables when using gcc --- src/video/win32_v.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3-54-g00ecf