pixman-renderer: Fix read_pixels for screen recorder
authorAlexander Larsson <alexl@redhat.com>
Wed, 29 May 2013 10:01:33 +0000 (12:01 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 29 May 2013 14:22:01 +0000 (10:22 -0400)
commit97af79271873d34c3b6e1e4300c4bbb4e0fe6989
treea310475520e2c3910e080dc3ad56e42ad5af9c6a
parent5576546e3d1b66627fb4693f2dc97ccef0402a2d
pixman-renderer: Fix read_pixels for screen recorder

The old code had an off-by-one error on the y coordinate
where it says height - (cur_y - y). And it does the vflipping of
the *destination* buffer, whereas what is really needed is to
vflip the whole source buffer. This only affects when you read
out part of the image, such as when using the screen recoder.

Also, instead of doing the flipping manually we just let pixman
handle it.
src/pixman-renderer.c