From: Kazuhiro Ito Date: Thu, 26 Aug 2010 07:35:54 +0000 (+0000) Subject: Fix display of BW images on MS-Windows X-Git-Tag: emacs-29.0.90~3671^2~196 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ba278e4a9b076b381317100df6bed664eb6aed6c;p=emacs.git Fix display of BW images on MS-Windows * src/image.c (convert_mono_to_color_image) [HAVE_NTGUI]: Swap the fore- and the back-ground colors back to their normal conventions. (Bug#6918) --- diff --git a/src/image.c b/src/image.c index da6cbba74da..6769e491202 100644 --- a/src/image.c +++ b/src/image.c @@ -3547,10 +3547,8 @@ convert_mono_to_color_image (struct frame *f, struct image *img, release_frame_dc (f, hdc); old_prev = SelectObject (old_img_dc, img->pixmap); new_prev = SelectObject (new_img_dc, new_pixmap); - /* Windows convention for mono bitmaps is black = background, - white = foreground. */ - SetTextColor (new_img_dc, background); - SetBkColor (new_img_dc, foreground); + SetTextColor (new_img_dc, foreground); + SetBkColor (new_img_dc, background); BitBlt (new_img_dc, 0, 0, img->width, img->height, old_img_dc, 0, 0, SRCCOPY);