aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2000-11-18 01:58:42 +0000
committerJason Rumney2000-11-18 01:58:42 +0000
commit92bb977fc2911b39a1ef9a2c6bba133415690789 (patch)
tree30000aef2d895d2c1516d8f6c3f643793fc71dce /src
parent5f1e183edd14b029ee81816884cac37e17d272af (diff)
downloademacs-92bb977fc2911b39a1ef9a2c6bba133415690789.tar.gz
emacs-92bb977fc2911b39a1ef9a2c6bba133415690789.zip
(w32_draw_bitmap): Use face to set colors.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32term.c10
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 755f8755d28..254dc36c355 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12000-11-18 Jason Rumney <jasonr@gnu.org>
2
3 * w32term.c (w32_draw_bitmap): Use face to set colors.
4
12000-11-17 Dave Love <fx@gnu.org> 52000-11-17 Dave Love <fx@gnu.org>
2 6
3 * lread.c (Fload): Fix #ifdef for pcc. 7 * lread.c (Fload): Fix #ifdef for pcc.
diff --git a/src/w32term.c b/src/w32term.c
index c5161b489c7..8d125d7c690 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -863,15 +863,17 @@ w32_draw_bitmap (w, hdc, row, which)
863 863
864 compat_hdc = CreateCompatibleDC (hdc); 864 compat_hdc = CreateCompatibleDC (hdc);
865 SaveDC (hdc); 865 SaveDC (hdc);
866 fg_brush = CreateSolidBrush (FRAME_FOREGROUND_PIXEL (f)); 866 fg_brush = CreateSolidBrush (face->foreground);
867 orig_brush = SelectObject (hdc, fg_brush); 867 orig_brush = SelectObject (hdc, fg_brush);
868 horig_obj = SelectObject (compat_hdc, pixmap); 868 horig_obj = SelectObject (compat_hdc, pixmap);
869 SetTextColor (hdc, FRAME_BACKGROUND_PIXEL (f)); 869 SetTextColor (hdc, face->foreground);
870 SetBkColor (hdc, FRAME_FOREGROUND_PIXEL (f)); 870 SetBkColor (hdc, face->background);
871#if 0 /* From w32bdf.c (which is from Meadow). */ 871#if 0 /* From w32bdf.c (which is from Meadow). */
872 /* Old versions - in case we find a reason to fall back on them. */
872 BitBlt (hdc, x, y + dy, wd, h, compat_hdc, 0, 0, SRCCOPY); 873 BitBlt (hdc, x, y + dy, wd, h, compat_hdc, 0, 0, SRCCOPY);
873#else
874 BitBlt (hdc, x, y + dy, wd, h, compat_hdc, 0, 0, 0xB8074A); 874 BitBlt (hdc, x, y + dy, wd, h, compat_hdc, 0, 0, 0xB8074A);
875#else
876 BitBlt (hdc, x, y + dy, wd, h, compat_hdc, 0, 0, 0xE20746);
875#endif 877#endif
876 SelectObject (compat_hdc, horig_obj); 878 SelectObject (compat_hdc, horig_obj);
877 SelectObject (hdc, orig_brush); 879 SelectObject (hdc, orig_brush);