changeset 48448:2d334bd224b4

(x_build_heuristic_mask): Filter palette info from color. (XPutPixel): Swap blue and red.
author Jason Rumney <jasonr@gnu.org>
date Mon, 18 Nov 2002 21:32:55 +0000
parents 48ea9439150e
children 548ef238f24f
files src/w32fns.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Mon Nov 18 21:29:05 2002 +0000
+++ b/src/w32fns.c	Mon Nov 18 21:32:55 2002 +0000
@@ -10749,9 +10749,10 @@
     rowbytes += 4 - (rowbytes % 4);
 
   pixel = ximg->data + y * rowbytes + x * 3;
-  *pixel = GetRValue (color);
+  /* Windows bitmaps are in BGR order.  */
+  *pixel = GetBValue (color);
   *(pixel + 1) = GetGValue (color);
-  *(pixel + 2) = GetBValue (color);
+  *(pixel + 2) = GetRValue (color);
 }