From d01235332cf4df8bd8b3d0c8614ba7c80d43ad42 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Wed, 22 Jul 2009 20:17:10 +0200 Subject: [PATCH] winex11: Make BRUSH_DitherColor independent of the screen_depth. --- dlls/winex11.drv/brush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/brush.c b/dlls/winex11.drv/brush.c index 3368bbfa8d9..c94e04eabc8 100644 --- a/dlls/winex11.drv/brush.c +++ b/dlls/winex11.drv/brush.c @@ -114,7 +114,7 @@ static Pixmap BRUSH_DitherColor( COLORREF color, int depth) if (!ditherImage) { - ditherImage = X11DRV_DIB_CreateXImage( MATRIX_SIZE, MATRIX_SIZE, screen_depth ); + ditherImage = X11DRV_DIB_CreateXImage( MATRIX_SIZE, MATRIX_SIZE, depth ); if (!ditherImage) { ERR("Could not create dither image\n"); @@ -144,7 +144,7 @@ static Pixmap BRUSH_DitherColor( COLORREF color, int depth) prevColor = color; } - pixmap = XCreatePixmap( gdi_display, root_window, MATRIX_SIZE, MATRIX_SIZE, screen_depth ); + pixmap = XCreatePixmap( gdi_display, root_window, MATRIX_SIZE, MATRIX_SIZE, depth ); XPutImage( gdi_display, pixmap, gc, ditherImage, 0, 0, 0, 0, MATRIX_SIZE, MATRIX_SIZE ); wine_tsx11_unlock();