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

This commit is contained in:
Chris Wilson 2008-02-29 16:42:04 -05:00 committed by Adam Jackson
parent 8f0a4282f0
commit 5d5fcc7198

View File

@ -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) {