Commit c6570a50 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

winex11: Make X11DRV_SetupGCForPatBlt independent of screen_depth.

parent d0123533
...@@ -233,7 +233,7 @@ BOOL X11DRV_SetupGCForPatBlt( X11DRV_PDEVICE *physDev, GC gc, BOOL fMapColors ) ...@@ -233,7 +233,7 @@ BOOL X11DRV_SetupGCForPatBlt( X11DRV_PDEVICE *physDev, GC gc, BOOL fMapColors )
register int x, y; register int x, y;
XImage *image; XImage *image;
wine_tsx11_lock(); wine_tsx11_lock();
pixmap = XCreatePixmap( gdi_display, root_window, 8, 8, screen_depth ); pixmap = XCreatePixmap( gdi_display, root_window, 8, 8, physDev->depth );
image = XGetImage( gdi_display, physDev->brush.pixmap, 0, 0, 8, 8, image = XGetImage( gdi_display, physDev->brush.pixmap, 0, 0, 8, 8,
AllPlanes, ZPixmap ); AllPlanes, ZPixmap );
for (y = 0; y < 8; y++) for (y = 0; y < 8; y++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment