Commit 5d5fcc71 authored by Chris Wilson's avatar Chris Wilson 🤔 Committed by Adam Jackson

Bug #10464: Set pixel value to 0 before FindColor()

parent 8f0a4282
......@@ -1006,6 +1006,7 @@ FakeAllocColor (ColormapPtr pmap, xColorItem *item)
switch (class) {
case GrayScale:
case PseudoColor:
temp = 0;
item->pixel = 0;
if (FindColor(pmap, pmap->red, entries, &rgb, &temp, PSEUDOMAP,
-1, AllComp) == Success) {
......
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