Commit 63ba55b0 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard

Don't fill colormap beyond end of screen depth.

parent 2b74e91d
......@@ -137,6 +137,10 @@ int *X11DRV_DIB_GenColorMap( DC *dc, int *colorMapping,
if (coloruse == DIB_RGB_COLORS)
{
int max = 1 << depth;
if (end > max) end = max;
if (quads)
{
RGBQUAD * rgb = (RGBQUAD *)colorPtr;
......
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