diff options
| author | Jason Rumney | 2002-11-18 21:32:55 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-11-18 21:32:55 +0000 |
| commit | adda530bc8492f7207d2c6dd4fdd27d264910f0b (patch) | |
| tree | 0944df9498579d88c8a1c047bae1b8da12a21f11 /src | |
| parent | cf234711dc9bd93a1fe9af159d937ff072e36ec1 (diff) | |
| download | emacs-adda530bc8492f7207d2c6dd4fdd27d264910f0b.tar.gz emacs-adda530bc8492f7207d2c6dd4fdd27d264910f0b.zip | |
(x_build_heuristic_mask): Filter palette info from color.
(XPutPixel): Swap blue and red.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index ab2e5237c61..f202eae18e8 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -10749,9 +10749,10 @@ static void XPutPixel (ximg, x, y, color) | |||
| 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 | ||