diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c index 05832f99142..41a3d9639c9 100644 --- a/win32ss/gdi/ntgdi/palette.c +++ b/win32ss/gdi/ntgdi/palette.c @@ -149,6 +149,9 @@ PALETTE_AllocPalette( /* Check color count */ if ((cColors == 0) || (cColors > 1024)) return NULL; + /* Mark 2 color indexed palettes as monochrome */ + if (cColors == 2) iMode |= PAL_MONOCHROME; + /* Allocate enough space for the palete entries */ cjSize += cColors * sizeof(PALETTEENTRY); }