summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-19 11:47:30 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-19 11:49:40 -0400
commit72208b8a083540d1727de7c2a9a5ca88257c43b2 (patch)
tree9520ba21116b9a2d54014f3bb69baa6e53348c90
parent66ed60a9f0a7e088bea980a5023904d6a0ce04dd (diff)
xwayland: Fix width/height typo
Spotted by Tomasz Borowik (timon37) in irc.
-rw-r--r--hw/xfree86/xwayland/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/xwayland/xwayland.c b/hw/xfree86/xwayland/xwayland.c
index 9fb8e6e80..70b810e36 100644
--- a/hw/xfree86/xwayland/xwayland.c
+++ b/hw/xfree86/xwayland/xwayland.c
@@ -290,7 +290,7 @@ xwl_create_window_buffer_shm(struct xwl_window *xwl_window,
else
format = WL_SHM_FORMAT_XRGB8888;
- size = pixmap->drawable.width * pixmap->drawable.width * 4;
+ size = pixmap->drawable.width * pixmap->drawable.height * 4;
pool = wl_shm_create_pool(xwl_window->xwl_screen->shm, fd, size);
xwl_window->buffer = wl_shm_pool_create_buffer(pool, 0,
pixmap->drawable.width, pixmap->drawable.height,