mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
13 lines
456 B
Diff
13 lines
456 B
Diff
|
--- ./render/mipict.c.orig 2018-05-10 11:32:37.000000000 -0500
|
||
|
+++ ./render/mipict.c 2018-05-30 00:01:50.648530333 -0500
|
||
|
@@ -394,6 +394,9 @@
|
||
|
CARD32 r, g, b, a;
|
||
|
miIndexedPtr pIndexed;
|
||
|
|
||
|
+ if(! format)
|
||
|
+ *pixel = (color->alpha >> 8 << 24) | (color->red >> 8 << 16) | (color->green & 0xff00) | (color->blue >> 8);
|
||
|
+ else
|
||
|
switch (format->type) {
|
||
|
case PictTypeDirect:
|
||
|
r = color->red >> (16 - Ones(format->direct.redMask));
|