]> git.eshelyaron.com Git - emacs.git/commitdiff
(convert_mono_to_color_image): Swap fore and background.
authorJason Rumney <jasonr@gnu.org>
Thu, 21 Jun 2007 23:02:14 +0000 (23:02 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 21 Jun 2007 23:02:14 +0000 (23:02 +0000)
src/ChangeLog
src/image.c

index 3707ba5d82ab30c016e0810f0fb1d2c559ef383b..f84bcf4f233c20f89f19243d99a4cc72c141a5e3 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-21  Jason Rumney  <jasonr@gnu.org>
+
+       * image.c (convert_mono_to_color_image): Swap fore and background.
+
 2007-06-20  Jason Rumney  <jasonr@gnu.org>
 
        * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
index 2dd578afc39f8679a95b2d5dfce5cc7229ba7287..a1a908600ee0717cc9ceac48c7edfdaa7e5baf8c 100644 (file)
@@ -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);