From 2386b1f188053fd0021c29613b1b2cef43771b02 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 21 Jun 2007 23:02:14 +0000 Subject: [PATCH] (convert_mono_to_color_image): Swap fore and background. --- src/ChangeLog | 4 ++++ src/image.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3707ba5d82a..f84bcf4f233 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-06-21 Jason Rumney + + * image.c (convert_mono_to_color_image): Swap fore and background. + 2007-06-20 Jason Rumney * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. diff --git a/src/image.c b/src/image.c index 2dd578afc39..a1a908600ee 100644 --- a/src/image.c +++ b/src/image.c @@ -3120,8 +3120,8 @@ static void convert_mono_to_color_image (f, img, foreground, background) release_frame_dc (f, hdc); old_prev = SelectObject (old_img_dc, img->pixmap); new_prev = SelectObject (new_img_dc, new_pixmap); - SetTextColor (new_img_dc, foreground); - SetBkColor (new_img_dc, background); + SetTextColor (new_img_dc, background); + SetBkColor (new_img_dc, foreground); BitBlt (new_img_dc, 0, 0, img->width, img->height, old_img_dc, 0, 0, SRCCOPY); -- 2.39.2