summaryrefslogtreecommitdiff
path: root/src/pixman-renderer.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-05-28 16:23:36 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-05-28 16:22:26 -0400
commit0b13506ecf649b1685944ef01d9b60cabad117b3 (patch)
tree576720a91730ee6676b79bb148847a3a63a13d05 /src/pixman-renderer.c
parent83368817a7b73ec00109be09b426380e9bc38e81 (diff)
downloadweston-0b13506ecf649b1685944ef01d9b60cabad117b3.tar.gz
weston-0b13506ecf649b1685944ef01d9b60cabad117b3.tar.bz2
weston-0b13506ecf649b1685944ef01d9b60cabad117b3.zip
compositor: Store modes in physical units
We changed the protocol to always list modes in physical pixel units (not scaled). And we removed the scaled mode flag. This just updates the DRM and X11 compositors and the gl and pixman renderers to handle this.
Diffstat (limited to 'src/pixman-renderer.c')
-rw-r--r--src/pixman-renderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
index 315ea152..ba7cb432 100644
--- a/src/pixman-renderer.c
+++ b/src/pixman-renderer.c
@@ -691,8 +691,8 @@ pixman_renderer_output_create(struct weston_output *output)
return -1;
/* set shadow image transformation */
- w = output->current->width * output->scale;
- h = output->current->height * output->scale;
+ w = output->current->width;
+ h = output->current->height;
po->shadow_buffer = malloc(w * h * 4);