projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7f4268
)
Fix fbStore_b2g3r3(). Pointed out by Dan Amelang
author
Søren Sandmann Pedersen
<sandmann@redhat.com>
Tue, 19 Jun 2007 15:19:43 +0000
(11:19 -0400)
committer
Søren Sandmann Pedersen
<sandmann@redhat.com>
Tue, 19 Jun 2007 15:19:43 +0000
(11:19 -0400)
pixman/pixman-compose.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-compose.c
b/pixman/pixman-compose.c
index
63b1677
..
d870b2a
100644
(file)
--- a/
pixman/pixman-compose.c
+++ b/
pixman/pixman-compose.c
@@
-1404,7
+1404,8
@@
fbStore_r3g3b2 (pixman_image_t *image,
uint8_t *pixel = ((uint8_t *) bits) + x;
for (i = 0; i < width; ++i) {
Split(READ(values + i));
- WRITE(pixel++, ((r ) & 0xe0) |
+ WRITE(pixel++,
+ ((r ) & 0xe0) |
((g >> 3) & 0x1c) |
((b >> 6) ));
}
@@
-1418,9
+1419,10
@@
fbStore_b2g3r3 (pixman_image_t *image,
uint8_t *pixel = ((uint8_t *) bits) + x;
for (i = 0; i < width; ++i) {
Split(READ(values + i));
- WRITE(pixel++, ((b ) & 0xe0) |
+ WRITE(pixel++,
+ ((b ) & 0xc0) |
((g >> 3) & 0x1c) |
- ((r >>
6
) ));
+ ((r >>
5
) ));
}
}