diff options
| author | 2011-10-22 09:55:22 +0000 | |
|---|---|---|
| committer | 2011-10-22 09:55:22 +0000 | |
| commit | a1f1b43fda631d8c5aa9c7d2bf1cb9197d436e45 (patch) | |
| tree | 0b6faefafc871d762f8d4fa3f50c719de0174c7d | |
| parent | e9dc32284d2b7a3d7aaffd8eb8f470fe0f59ba1b (diff) | |
Fixed compile under GCC 4.6 (no whatsnew)
| -rw-r--r-- | src/osd/windows/winmain.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index 3e43305d880..ddacfc840e9 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -866,8 +866,10 @@ bitmap_t *windows_osd_interface::font_get_bitmap(osd_font font, unicode_char chn info.bmiHeader.biYPelsPerMeter = GetDeviceCaps(dummyDC, VERTRES) / GetDeviceCaps(dummyDC, VERTSIZE); info.bmiHeader.biClrUsed = 0; info.bmiHeader.biClrImportant = 0; - info.bmiColors[0].rgbBlue = info.bmiColors[0].rgbGreen = info.bmiColors[0].rgbRed = 0x00; - info.bmiColors[1].rgbBlue = info.bmiColors[1].rgbGreen = info.bmiColors[1].rgbRed = 0xff; + RGBQUAD col1 = info.bmiColors[0]; + RGBQUAD col2 = info.bmiColors[1]; + col1.rgbBlue = col1.rgbGreen = col1.rgbRed = 0x00; + col2.rgbBlue = col2.rgbGreen = col2.rgbRed = 0xff; // create a DIB to render to BYTE *bits; |
