summaryrefslogtreecommitdiff
path: root/pixman/pixman-edge.c
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2007-08-25 23:30:41 -0700
committerCarl Worth <cworth@cworth.org>2007-08-25 23:31:07 -0700
commit8ff7213f39edc1b2b8b60d6b0cc5d5f14ca1928d (patch)
tree441714a50875f1910861c7490a2ae61110a97d5b /pixman/pixman-edge.c
parent028993aacb9ec48aa9d347d0d189250b464cf30f (diff)
rasterize traps that extend outside of the image bounds correctly
Traps that extend outside of the image bounds are rasterized incorrectly currently; the problem is a signed vs. unsigned comparison that got introduced when a width parameter went from int -> uint. This patch puts it back to int (since it's stored as an int in the bits structure to begin with), and also fixes a similar warning in the memset wrapper
Diffstat (limited to 'pixman/pixman-edge.c')
-rw-r--r--pixman/pixman-edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-edge.c b/pixman/pixman-edge.c
index 191752f..24758c3 100644
--- a/pixman/pixman-edge.c
+++ b/pixman/pixman-edge.c
@@ -129,7 +129,7 @@ fbRasterizeEdges8 (pixman_image_t *image,
int fill_size = 0;
uint32_t *buf = (image)->bits.bits;
int32_t stride = (image)->bits.rowstride;
- uint32_t width = (image)->bits.width;
+ int32_t width = (image)->bits.width;
line = buf + pixman_fixed_to_int (y) * stride;