aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c5
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