Merge branch 'master' of git+ssh://herrb@git.freedesktop.org/git/xorg/xserver
This commit is contained in:
commit
bf59485187
|
@ -883,7 +883,7 @@ xf86I2CGetScreenBuses(int scrnIndex, I2CBusPtr **pppI2CBus)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*pppI2CBus = xnfrealloc(*pppI2CBus, n * sizeof(I2CBusPtr));
|
*pppI2CBus = xnfrealloc(*pppI2CBus, n * sizeof(I2CBusPtr));
|
||||||
*pppI2CBus[n - 1] = pI2CBus;
|
(*pppI2CBus)[n - 1] = pI2CBus;
|
||||||
}
|
}
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
|
|
|
@ -80,9 +80,10 @@ XAAValidateGC(
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pGC->depth != 32) {
|
if(pGC->depth != 32) {
|
||||||
if(pGC->bgPixel == -1) /* -1 is reserved for transparency */
|
/* 0xffffffff is reserved for transparency */
|
||||||
|
if(pGC->bgPixel == 0xffffffff)
|
||||||
pGC->bgPixel = 0x7fffffff;
|
pGC->bgPixel = 0x7fffffff;
|
||||||
if(pGC->fgPixel == -1) /* -1 is reserved for transparency */
|
if(pGC->fgPixel == 0xffffffff)
|
||||||
pGC->fgPixel = 0x7fffffff;
|
pGC->fgPixel = 0x7fffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue