Roderick Colenbrander : winex11: Make BRUSH_DitherColor independent of the screen_depth.
Module: wine Branch: master Commit: d01235332cf4df8bd8b3d0c8614ba7c80d43ad42 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d01235332cf4df8bd8b3d0c861... Author: Roderick Colenbrander <thunderbird2k(a)gmail.com> Date: Wed Jul 22 20:17:10 2009 +0200 winex11: Make BRUSH_DitherColor independent of the screen_depth. --- dlls/winex11.drv/brush.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/brush.c b/dlls/winex11.drv/brush.c index 3368bbf..c94e04e 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();
participants (1)
-
Alexandre Julliard