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
1 changed files with 2 additions and 2 deletions

View File

@ -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();