Commit b383dbf6 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

With >256 colours, there is no need to realize a palette, so skip it

and return that no palette entries had to change.
parent bc9de050
......@@ -1221,6 +1221,8 @@ UINT X11DRV_RealizePalette( X11DRV_PDEVICE *physDev, HPALETTE hpal, BOOL primary
UINT ret;
PALETTEOBJ *palPtr;
if (X11DRV_PALETTE_PaletteFlags & X11DRV_PALETTE_VIRTUAL) return 0;
if (!(palPtr = GDI_GetObjPtr( hpal, PALETTE_MAGIC ))) return 0;
ret = X11DRV_PALETTE_SetMapping( palPtr, 0, palPtr->logpalette.palNumEntries, !primary );
GDI_ReleaseObj( hpal );
......
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