summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2005-03-16 18:59:41 +0000
committerDavid Reveman <davidr@novell.com>2005-03-16 18:59:41 +0000
commite3647299e2fab280c49b6248be7da2eb8ce4599d (patch)
treeed9e8190ca4c2c764ea2185c88c4636edc9c42c0 /src
parent188a9eee68590d629f98bd7decaf2bdc5a5950f4 (diff)
Fix y-offset when returning pixel data in bottom to top scanline order
Diffstat (limited to 'src')
-rw-r--r--src/glitz_pixel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glitz_pixel.c b/src/glitz_pixel.c
index e211e1c..ddd7f03 100644
--- a/src/glitz_pixel.c
+++ b/src/glitz_pixel.c
@@ -1092,6 +1092,9 @@ glitz_get_pixels (glitz_surface_t *src,
dst_image.width = width;
dst_image.height = height;
+ if (format->scanline_order == GLITZ_PIXEL_SCANLINE_ORDER_BOTTOM_UP)
+ src_y = src_h - src_y - height;
+
_glitz_pixel_transform (transform,
&src_image,
&dst_image,