comparison src/w32fns.c @ 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 7a9357cf0aa0
children 548ef238f24f
comparison
equal deleted inserted replaced
48447:48ea9439150e 48448:2d334bd224b4
10747 /* Ensure scanlines are aligned on 4 byte boundaries. */ 10747 /* Ensure scanlines are aligned on 4 byte boundaries. */
10748 if (rowbytes % 4) 10748 if (rowbytes % 4)
10749 rowbytes += 4 - (rowbytes % 4); 10749 rowbytes += 4 - (rowbytes % 4);
10750 10750
10751 pixel = ximg->data + y * rowbytes + x * 3; 10751 pixel = ximg->data + y * rowbytes + x * 3;
10752 *pixel = GetRValue (color); 10752 /* Windows bitmaps are in BGR order. */
10753 *pixel = GetBValue (color);
10753 *(pixel + 1) = GetGValue (color); 10754 *(pixel + 1) = GetGValue (color);
10754 *(pixel + 2) = GetBValue (color); 10755 *(pixel + 2) = GetRValue (color);
10755 } 10756 }
10756 10757
10757 10758
10758 /* Create IMG->pixmap from an array COLORS of XColor structures, whose 10759 /* Create IMG->pixmap from an array COLORS of XColor structures, whose
10759 RGB members are set. F is the frame on which this all happens. 10760 RGB members are set. F is the frame on which this all happens.