diff options
author | David Reveman <davidr@novell.com> | 2005-03-16 18:59:41 +0000 |
---|---|---|
committer | David Reveman <davidr@novell.com> | 2005-03-16 18:59:41 +0000 |
commit | e3647299e2fab280c49b6248be7da2eb8ce4599d (patch) | |
tree | ed9e8190ca4c2c764ea2185c88c4636edc9c42c0 /src | |
parent | 188a9eee68590d629f98bd7decaf2bdc5a5950f4 (diff) |
Fix y-offset when returning pixel data in bottom to top scanline order
Diffstat (limited to 'src')
-rw-r--r-- | src/glitz_pixel.c | 3 |
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, |