mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-06 17:29:22 +00:00
client/windows: arraysize(inf.bmiColors) == 1 in mingw32
This commit is contained in:
parent
fe61197643
commit
96c292a0b4
@ -64,9 +64,12 @@ RedPixmapGdi::RedPixmapGdi(int width, int height, RedDrawable::Format format, bo
|
||||
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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user