mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-24 01:40:36 +00:00
bgPixel (unsigned long) is 64-bit on x86_64, so -1 != 0xffffffff
This patch should fix bug 8080.
This commit is contained in:
parent
529acb1754
commit
9adea80703
1 changed files with 5 additions and 4 deletions
|
|
@ -80,9 +80,10 @@ XAAValidateGC(
|
|||
}
|
||||
|
||||
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;
|
||||
if(pGC->fgPixel == -1) /* -1 is reserved for transparency */
|
||||
if(pGC->fgPixel == 0xffffffff)
|
||||
pGC->fgPixel = 0x7fffffff;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue