summaryrefslogtreecommitdiffstats
path: root/client/windows/red_pixmap_sw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/windows/red_pixmap_sw.cpp')
-rw-r--r--client/windows/red_pixmap_sw.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/windows/red_pixmap_sw.cpp b/client/windows/red_pixmap_sw.cpp
index 991b6735..9ed1460d 100644
--- a/client/windows/red_pixmap_sw.cpp
+++ b/client/windows/red_pixmap_sw.cpp
@@ -77,9 +77,12 @@ RedPixmapSw::RedPixmapSw(int width, int height, RedDrawable::Format format,
bitmap_info.inf.bmiColors[0].rgbRed = 0;
bitmap_info.inf.bmiColors[0].rgbGreen = 0;
bitmap_info.inf.bmiColors[0].rgbBlue = 0;
+#ifndef __MINGW32__
+ // inf.bmiColors is [1] in mingw/include/wingdi.h
bitmap_info.inf.bmiColors[1].rgbRed = 0xff;
bitmap_info.inf.bmiColors[1].rgbGreen = 0xff;
bitmap_info.inf.bmiColors[1].rgbBlue = 0xff;
+#endif
break;
case RedDrawable::RGB16_565:
pixel_format = (DWORD *)bitmap_info.inf.bmiColors;