mirror of https://github.com/OpenTTD/OpenTTD
(svn r26943) -Fix: [Win32] Silence a warning about comparison of signed and unsigned variables when using gcc
parent
17cd86d762
commit
3df230af62
|
@ -1045,7 +1045,7 @@ static bool AllocateDibSection(int w, int h, bool force)
|
||||||
{
|
{
|
||||||
BITMAPINFO *bi;
|
BITMAPINFO *bi;
|
||||||
HDC dc;
|
HDC dc;
|
||||||
int bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth();
|
uint bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth();
|
||||||
|
|
||||||
w = max(w, 64);
|
w = max(w, 64);
|
||||||
h = max(h, 64);
|
h = max(h, 64);
|
||||||
|
@ -1105,7 +1105,7 @@ static void FindResolutions()
|
||||||
DEVMODEA dm;
|
DEVMODEA dm;
|
||||||
|
|
||||||
/* Check modes for the relevant fullscreen bpp */
|
/* 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
|
/* XXX - EnumDisplaySettingsW crashes with unicows.dll on Windows95
|
||||||
* Doesn't really matter since we don't pass a string anyways, but still
|
* Doesn't really matter since we don't pass a string anyways, but still
|
||||||
|
|
Loading…
Reference in New Issue