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.
This commit is contained in:
Alexander Larsson 2013-05-29 12:01:34 +02:00 committed by Kristian Høgsberg
parent 97af792718
commit b846a8d45e

View File

@ -330,6 +330,11 @@ transform_rect(struct weston_output *output, pixman_box32_t *r)
default: default:
break; break;
} }
r->x1 *= output->scale;
r->y1 *= output->scale;
r->x2 *= output->scale;
r->y2 *= output->scale;
} }
static void static void