diff options
| author | Jason Rumney | 2002-11-15 23:33:34 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-11-15 23:33:34 +0000 |
| commit | 4108c39dcb59abf0623845360cb4b254f622ddfa (patch) | |
| tree | 14719a399c594784862f7ea511bb0e73f8ec8966 /src | |
| parent | 35624c0374f83c9a68d33e42e889a4b99a621819 (diff) | |
| download | emacs-4108c39dcb59abf0623845360cb4b254f622ddfa.tar.gz emacs-4108c39dcb59abf0623845360cb4b254f622ddfa.zip | |
(x_draw_image_foreground)
(w32_draw_image_foreground_1): Use standard copy and invert
operations to draw images.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 9 |
1 files 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) | |||
| 3905 | SetBkColor (s->hdc, RGB (0, 0, 0)); | 3905 | SetBkColor (s->hdc, RGB (0, 0, 0)); |
| 3906 | 3906 | ||
| 3907 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, | 3907 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, |
| 3908 | compat_hdc, 0, 0, 0x990066); | 3908 | compat_hdc, 0, 0, SRCINVERT); |
| 3909 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, | 3909 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, |
| 3910 | mask_dc, 0, 0, SRCAND); | 3910 | mask_dc, 0, 0, SRCAND); |
| 3911 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, | 3911 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, |
| 3912 | compat_hdc, 0, 0, 0x990066); | 3912 | compat_hdc, 0, 0, SRCINVERT); |
| 3913 | 3913 | ||
| 3914 | SelectObject (mask_dc, mask_orig_obj); | 3914 | SelectObject (mask_dc, mask_orig_obj); |
| 3915 | DeleteDC (mask_dc); | 3915 | DeleteDC (mask_dc); |
| @@ -3920,8 +3920,7 @@ x_draw_image_foreground (s) | |||
| 3920 | SetBkColor (s->hdc, s->gc->background); | 3920 | SetBkColor (s->hdc, s->gc->background); |
| 3921 | 3921 | ||
| 3922 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, | 3922 | BitBlt (s->hdc, x, y, s->img->width, s->img->height, |
| 3923 | compat_hdc, 0, 0, NOTSRCCOPY); | 3923 | compat_hdc, 0, 0, SRCCOPY); |
| 3924 | /* Meadow uses 0xE20746, previously SRCCOPY and 0xB8074A. */ | ||
| 3925 | 3924 | ||
| 3926 | /* When the image has a mask, we can expect that at | 3925 | /* When the image has a mask, we can expect that at |
| 3927 | least part of a mouse highlight or a block cursor will | 3926 | least part of a mouse highlight or a block cursor will |
| @@ -4055,7 +4054,7 @@ w32_draw_image_foreground_1 (s, pixmap) | |||
| 4055 | SetBkColor (hdc, s->gc->background); | 4054 | SetBkColor (hdc, s->gc->background); |
| 4056 | 4055 | ||
| 4057 | BitBlt (hdc, x, y, s->img->width, s->img->height, | 4056 | BitBlt (hdc, x, y, s->img->width, s->img->height, |
| 4058 | compat_hdc, 0, 0, NOTSRCCOPY); | 4057 | compat_hdc, 0, 0, SRCCOPY); |
| 4059 | 4058 | ||
| 4060 | /* When the image has a mask, we can expect that at | 4059 | /* When the image has a mask, we can expect that at |
| 4061 | least part of a mouse highlight or a block cursor will | 4060 | least part of a mouse highlight or a block cursor will |