diff options
-rw-r--r-- | client/windows/red_pixmap_gdi.cpp | 6 | ||||
-rw-r--r-- | client/windows/red_pixmap_sw.cpp | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/client/windows/red_pixmap_gdi.cpp b/client/windows/red_pixmap_gdi.cpp index cf8190e0..035618c2 100644 --- a/client/windows/red_pixmap_gdi.cpp +++ b/client/windows/red_pixmap_gdi.cpp @@ -71,7 +71,11 @@ RedPixmapGdi::RedPixmapGdi(int width, int height, RedDrawable::Format format, bo pixel_format[1] = 0x07e0; pixel_format[2] = 0x001f; break; - } + case RedDrawable::ARGB32: + case RedDrawable::RGB32: + case RedDrawable::RGB16_555: + break; + } AutoDC dc(create_compatible_dc()); AutoGDIObject bitmap(CreateDIBSection(dc.get(), &bitmap_info.inf, 0, (VOID **)&_data, NULL, 0)); diff --git a/client/windows/red_pixmap_sw.cpp b/client/windows/red_pixmap_sw.cpp index 1a76530a..4d74da40 100644 --- a/client/windows/red_pixmap_sw.cpp +++ b/client/windows/red_pixmap_sw.cpp @@ -84,6 +84,10 @@ RedPixmapSw::RedPixmapSw(int width, int height, RedDrawable::Format format, pixel_format[1] = 0x07e0; pixel_format[2] = 0x001f; break; + case RedDrawable::ARGB32: + case RedDrawable::RGB32: + case RedDrawable::RGB16_555: + break; } AutoDC dc(create_compatible_dc()); AutoGDIObject bitmap(CreateDIBSection(dc.get(), &bitmap_info.inf, 0, |