http://bugs.winehq.org/show_bug.cgi?id=4278
------- Additional Comments From xerox_xerox2000@yahoo.co.uk 2007-30-04 11:37 ------- Hi, Microsoft Flight Simulator fails in the same way and doesn't run. I made a workaround attached hereafter. Analysis:
Even if I set the (not very well known) registry key "ScreenDepth" to 32, the game still fails in the same way. Here's what happens (from x11drv_main.c): ------------------------------------------------------------------------------------------------------------------ if (!get_config_key( hkey, appkey, "ScreenDepth", buffer, sizeof(buffer) )) screen_depth = atoi(buffer);
So we have a 32-bit resolution if we set this registry key --------------------------------------------------------------------------------------------------------------- Later on:
/* If OpenGL is available, change the default visual, etc as necessary */ if ((desktop_vi = X11DRV_setup_opengl_visual( display ))) { visual = desktop_vi->visual; screen = ScreenOfDisplay(display, desktop_vi->screen); screen_depth = desktop_vi->depth; XFree(desktop_vi); }
----------------------------------------------------------------------------------------------------
Now we end up with a screendepth of 24 again. The only solution I see is the workaround in the patch attached hereafter. SplinterCell Pandora and MicroSoft Flight Simulator X start fine with this patch, and the registry key set.