mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-03 10:10:27 +01:00
Bug #10464: Set pixel value to 0 before FindColor()
This commit is contained in:
parent
8f0a4282f0
commit
5d5fcc7198
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue