commit | b846a8d45e898dabd54bbaa570b3460f3ebb0e25 | [log] [tgz] |
---|---|---|
author | Alexander Larsson <alexl@redhat.com> | Wed May 29 12:01:34 2013 +0200 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Wed May 29 10:22:15 2013 -0400 |
tree | d01db323c753fdf1a43cf9e0504a3d18753acd63 | |
parent | 97af79271873d34c3b6e1e4300c4bbb4e0fe6989 [diff] [blame] |
screenshooter: Scale damage by output scale in screen recorder The damage region is in compositor coords, we need to scale it by the output scale when using the damage to read output buffer data.
diff --git a/src/screenshooter.c b/src/screenshooter.c index d088cf7..83ad192 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c
@@ -330,6 +330,11 @@ default: break; } + + r->x1 *= output->scale; + r->y1 *= output->scale; + r->x2 *= output->scale; + r->y2 *= output->scale; } static void