[2/12] winex11.drv: Ignore depth missmatch when using a virtual desktop

Stefan Dösinger stefan at codeweavers.com
Mon Feb 26 06:38:49 CST 2007


Revert to old behavior for virtual desktops
-------------- next part --------------
From fbe537d5a622ef12b604026f4c4b608c79085ab4 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 23 Feb 2007 21:06:12 +0100
Subject: [PATCH] winex11.drv: Ignore depth missmatch when using a virtual desktop

---
 dlls/winex11.drv/desktop.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 7f27566..9bcb334 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -124,7 +124,11 @@ static LONG X11DRV_desktop_SetCurrentMode(int mode)
     if (dwBpp != dd_modes[mode].dwBPP)
     {
         FIXME("Cannot change screen BPP from %d to %d\n", dwBpp, dd_modes[mode].dwBPP);
-        return DISP_CHANGE_BADMODE;
+        /* Ignore the depth missmatch
+         *
+         * Some (older) applications require a specific bit depth, this will allow them
+         * to run. X11drv performs a color depth conversion if needed.
+         */
     }
     TRACE("Resizing Wine desktop window to %dx%d\n", dd_modes[mode].dwWidth, dd_modes[mode].dwHeight);
     X11DRV_resize_desktop(dd_modes[mode].dwWidth, dd_modes[mode].dwHeight);
-- 
1.4.4.3



More information about the wine-patches mailing list