Module: wine Branch: master Commit: 8b70b91cba18a46e91dc4cf2d3784f2bf7ca8472 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b70b91cba18a46e91dc4cf2d3...
Author: Stefan Dösinger stefan@codeweavers.com Date: Mon Feb 26 13:38:49 2007 +0100
winex11.drv: Ignore depth mismatch 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);