30b5f184bd
* Translation updates * Various bug fixes
21 lines
710 B
Text
21 lines
710 B
Text
$NetBSD: patch-ca,v 1.2 2011/05/04 20:31:40 adam Exp $
|
|
|
|
--- dlls/winex11.drv/settings.c.orig 2008-06-27 11:42:50.000000000 -0400
|
|
+++ dlls/winex11.drv/settings.c 2008-06-27 11:43:40.000000000 -0400
|
|
@@ -432,6 +432,16 @@
|
|
return DISP_CHANGE_SUCCESSFUL;
|
|
}
|
|
|
|
+ if (devmode->dmPelsWidth == 800 && devmode->dmPelsHeight == 600)
|
|
+ {
|
|
+ DEVMODEW newdm = *devmode;
|
|
+
|
|
+ ERR("800x600 not available, trying 800x480\n");
|
|
+ newdm.dmPelsWidth = 800;
|
|
+ newdm.dmPelsHeight = 480;
|
|
+ return X11DRV_ChangeDisplaySettingsEx(devname, &newdm, hwnd, flags, lpvoid);
|
|
+ }
|
|
+
|
|
/* no valid modes found */
|
|
ERR("No matching mode found %ux%ux%u @%u! (%s)\n",
|
|
devmode->dmPelsWidth, devmode->dmPelsHeight,
|