diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-09-19 19:46:13 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-09-22 23:40:52 -0400 |
commit | c4b69e706e63e01fbc70e0026c2079007c89de14 (patch) | |
tree | 84fe611c149c40a9ac7d42956b3f466ffb41e14c | |
parent | 35be7acb660228d4e350b5806c81e55606352e0d (diff) |
Fix bug in fast_composite_scaled_nearest()
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>
-rw-r--r-- | pixman/pixman-fast-path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c index 83c317f..86ed821 100644 --- 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); |