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:
35be7ac
)
Fix bug in fast_composite_scaled_nearest()
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Wed, 19 Sep 2012 23:46:13 +0000
(19:46 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Sun, 23 Sep 2012 03:40:52 +0000
(23:40 -0400)
The fast_composite_scaled_nearest() function can be called when the
format is x8b8g8r8. In that case pixels fetched in fetch_nearest()
need to have their alpha channel set to 0xff.
Fixes test suite failure in scaling-test.
Reviewed-by: Matt Turner <mattst88@gmail.com>
pixman/pixman-fast-path.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-fast-path.c
b/pixman/pixman-fast-path.c
index
83c317f
..
86ed821
100644
(file)
--- a/
pixman/pixman-fast-path.c
+++ b/
pixman/pixman-fast-path.c
@@
-1458,7
+1458,7
@@
fetch_nearest (pixman_repeat_t src_repeat,
{
if (repeat (src_repeat, &x, src_width))
{
- if (format == PIXMAN_x8r8g8b8)
+ if (format == PIXMAN_x8r8g8b8
|| format == PIXMAN_x8b8g8r8
)
return *(src + x) | 0xff000000;
else
return *(src + x);