xserver: Branch 'master'
Adam Jackson
ajax at kemper.freedesktop.org
Fri Feb 29 13:42:22 PST 2008
dix/colormap.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 5d5fcc7198ca54fa9dc24fe974763eff9fddabee
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Feb 29 16:42:04 2008 -0500
Bug #10464: Set pixel value to 0 before FindColor()
diff --git a/dix/colormap.c b/dix/colormap.c
index c4c8c8b..8b1bad8 100644
--- a/dix/colormap.c
+++ b/dix/colormap.c
@@ -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) {
More information about the xorg-commit
mailing list