Just a small nitpick :
- XF86VidModeModeInfo *mode;
- DWORD dwBpp = GetSystemMetrics(SM_WINE_BPP);
- if (dwBpp == 24) dwBpp = 32;
I would prefer this change to be done directly in the 'GetDeviceCaps' function of the X11DRV to always return 32 in case the scren depth is 24. I know for sure that this fixes at least one application and should not hurt others :-)
A part from that, the patch looks nice... If it breaks apps on Desktop mode, we will fix it then by re-adding the 'dummy' modes :-)
Lionel