diff --git a/openttd.vcproj b/openttd.vcproj index d42356e2b3..5660ba8f7c 100644 --- a/openttd.vcproj +++ b/openttd.vcproj @@ -17,7 +17,7 @@ ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" - CharacterSet="2" + CharacterSet="1" WholeProgramOptimization="TRUE"> + CharacterSet="1"> + + diff --git a/video/win32_v.c b/video/win32_v.c index a2f46378ea..be105c480a 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -668,9 +668,12 @@ static void FindResolutions(void) { uint n = 0; uint i; - DEVMODE dm; + DEVMODEA dm; - for (i = 0; EnumDisplaySettings(NULL, i, &dm) != 0; i++) { + /* XXX - EnumDisplaySettingsW crashes with unicows.dll on Windows95 + * Doesn't really matter since we don't pass a string anyways, but still + * a letdown */ + for (i = 0; EnumDisplaySettingsA(NULL, i, &dm) != 0; i++) { if (dm.dmBitsPerPel == 8 && IS_INT_INSIDE(dm.dmPelsWidth, 640, MAX_SCREEN_WIDTH + 1) && IS_INT_INSIDE(dm.dmPelsHeight, 480, MAX_SCREEN_HEIGHT + 1)) { uint j;