projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d8805e
)
Fix window.c build without cairo-gl
author
nobled
<nobled@dreamwidth.org>
Wed, 5 Jan 2011 17:41:55 +0000
(17:41 +0000)
committer
nobled
<nobled@dreamwidth.org>
Wed, 5 Jan 2011 17:41:55 +0000
(17:41 +0000)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
22cbd28
..
6700235
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-536,8
+536,13
@@
display_get_pointer_surface(struct display *display, int pointer,
cairo_surface_t *surface;
surface = display->pointer_surfaces[pointer];
+#if HAVE_CAIRO_GL
*width = cairo_gl_surface_get_width(surface);
*height = cairo_gl_surface_get_height(surface);
+#else
+ *width = cairo_image_surface_get_width(surface);
+ *height = cairo_image_surface_get_height(surface);
+#endif
*hotspot_x = pointer_images[pointer].hotspot_x;
*hotspot_y = pointer_images[pointer].hotspot_y;