(svn r7279) -Codechange: [win32] Add Windows95/98 support by using MSLU. Only workaround is that the

wide version of EnumDisplaySettings crashes on win95 no matter what, so use ANSI version.
 NOTE: MSLU support is only added to VS2003 project file because VS2005 compiles won't
 even run on Windows95.
This commit is contained in:
Darkvater
2006-11-28 20:01:46 +00:00
parent d8d210056d
commit dcbbda0cb9
2 changed files with 11 additions and 5 deletions

View File

@@ -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;