summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-19 11:47:30 -0400
committerChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>2012-06-13 15:26:20 +1000
commitbf3c0085177b8757b64abcd02161b0a85d4859ce (patch)
treeb128ed91ab3e163dde9f6cbe3979ba069c90e0ca
parentadb95f95137926fc71041856279e34b1ec7cd14e (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,