summaryrefslogtreecommitdiff
path: root/emulators/wine/patches/patch-ca
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/wine/patches/patch-ca')
-rw-r--r--emulators/wine/patches/patch-ca21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/wine/patches/patch-ca b/emulators/wine/patches/patch-ca
new file mode 100644
index 00000000000..53f04edef0d
--- /dev/null
+++ b/emulators/wine/patches/patch-ca
@@ -0,0 +1,21 @@
+$NetBSD: patch-ca,v 1.1 2008/06/28 05:18:57 jmcneill 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
+@@ -431,6 +431,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,