(X11 Series 2/3) Fix handling of non-default visuals
Alexandre Julliard
julliard at winehq.org
Tue Mar 18 06:53:31 CDT 2008
Michael Karcher <wine at mkarcher.dialup.fu-berlin.de> writes:
> @@ -144,7 +170,7 @@ BOOL X11DRV_CreateDC( HDC hdc, X11DRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR de
> else
> {
> physDev->bitmap = NULL;
> - physDev->drawable = root_window;
> + physDev->drawable = template_window;
> physDev->depth = screen_depth;
> physDev->drawable_rect = virtual_screen_rect;
> SetRect( &physDev->dc_rect, 0, 0, virtual_screen_rect.right - virtual_screen_rect.left,
This won't work, a screen DC has to be able to paint on the root
window. I'm afraid that supporting different depths properly is pretty
complicated.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list