From 4108c39dcb59abf0623845360cb4b254f622ddfa Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Fri, 15 Nov 2002 23:33:34 +0000 Subject: [PATCH] (x_draw_image_foreground) (w32_draw_image_foreground_1): Use standard copy and invert operations to draw images. --- src/w32term.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index ecd734ca694..a9ab3678b37 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -3905,11 +3905,11 @@ x_draw_image_foreground (s) SetBkColor (s->hdc, RGB (0, 0, 0)); BitBlt (s->hdc, x, y, s->img->width, s->img->height, - compat_hdc, 0, 0, 0x990066); + compat_hdc, 0, 0, SRCINVERT); BitBlt (s->hdc, x, y, s->img->width, s->img->height, mask_dc, 0, 0, SRCAND); BitBlt (s->hdc, x, y, s->img->width, s->img->height, - compat_hdc, 0, 0, 0x990066); + compat_hdc, 0, 0, SRCINVERT); SelectObject (mask_dc, mask_orig_obj); DeleteDC (mask_dc); @@ -3920,8 +3920,7 @@ x_draw_image_foreground (s) SetBkColor (s->hdc, s->gc->background); BitBlt (s->hdc, x, y, s->img->width, s->img->height, - compat_hdc, 0, 0, NOTSRCCOPY); - /* Meadow uses 0xE20746, previously SRCCOPY and 0xB8074A. */ + compat_hdc, 0, 0, SRCCOPY); /* When the image has a mask, we can expect that at least part of a mouse highlight or a block cursor will @@ -4055,7 +4054,7 @@ w32_draw_image_foreground_1 (s, pixmap) SetBkColor (hdc, s->gc->background); BitBlt (hdc, x, y, s->img->width, s->img->height, - compat_hdc, 0, 0, NOTSRCCOPY); + compat_hdc, 0, 0, SRCCOPY); /* When the image has a mask, we can expect that at least part of a mouse highlight or a block cursor will -- 2.39.2