summaryrefslogtreecommitdiff
path: root/src/glitz_pixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glitz_pixel.c')
-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,