winex11: Make BRUSH_DitherColor independent of the screen_depth.

This commit is contained in:
Roderick Colenbrander 2009-07-22 20:17:10 +02:00 committed by Alexandre Julliard
parent e082bf6626
commit d01235332c

View File

@ -114,7 +114,7 @@ static Pixmap BRUSH_DitherColor( COLORREF color, int depth)
if (!ditherImage) if (!ditherImage)
{ {
ditherImage = X11DRV_DIB_CreateXImage( MATRIX_SIZE, MATRIX_SIZE, screen_depth ); ditherImage = X11DRV_DIB_CreateXImage( MATRIX_SIZE, MATRIX_SIZE, depth );
if (!ditherImage) if (!ditherImage)
{ {
ERR("Could not create dither image\n"); ERR("Could not create dither image\n");
@ -144,7 +144,7 @@ static Pixmap BRUSH_DitherColor( COLORREF color, int depth)
prevColor = color; 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, XPutImage( gdi_display, pixmap, gc, ditherImage, 0, 0,
0, 0, MATRIX_SIZE, MATRIX_SIZE ); 0, 0, MATRIX_SIZE, MATRIX_SIZE );
wine_tsx11_unlock(); wine_tsx11_unlock();