projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97af792
)
screenshooter: Scale damage by output scale in screen recorder
author
Alexander Larsson
<alexl@redhat.com>
Wed, 29 May 2013 10:01:34 +0000
(12:01 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 29 May 2013 14:22:15 +0000
(10:22 -0400)
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.
src/screenshooter.c
patch
|
blob
|
history
diff --git
a/src/screenshooter.c
b/src/screenshooter.c
index
d088cf7
..
83ad192
100644
(file)
--- a/
src/screenshooter.c
+++ b/
src/screenshooter.c
@@
-330,6
+330,11
@@
transform_rect(struct weston_output *output, pixman_box32_t *r)
default:
break;
}
+
+ r->x1 *= output->scale;
+ r->y1 *= output->scale;
+ r->x2 *= output->scale;
+ r->y2 *= output->scale;
}
static void