Commit fac49cba authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid crash in X11DRV_IsSolidColor for TrueColor displays.

parent caab4c6f
...@@ -753,7 +753,9 @@ BOOL X11DRV_IsSolidColor( COLORREF color ) ...@@ -753,7 +753,9 @@ BOOL X11DRV_IsSolidColor( COLORREF color )
if (!color || (color == 0xffffff)) return TRUE; /* black or white */ if (!color || (color == 0xffffff)) return TRUE; /* black or white */
for (i = 0; i < 256 ; i++, pEntry++) if (X11DRV_PALETTE_PaletteFlags & X11DRV_PALETTE_VIRTUAL) return TRUE; /* no palette */
for (i = 0; i < palette_size ; i++, pEntry++)
{ {
if( i < COLOR_gapStart || i > COLOR_gapEnd ) if( i < COLOR_gapStart || i > COLOR_gapEnd )
if ((GetRValue(color) == pEntry->peRed) && if ((GetRValue(color) == pEntry->peRed) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment