[PATCH] Return something when creating a surface
nobled
nobled at dreamwidth.org
Sat Nov 13 19:24:18 PST 2010
---
clients/window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/clients/window.c b/clients/window.c
index 24ec5b0..ea1d6f6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -433,9 +433,9 @@ display_create_surface(struct display *display,
struct rectangle *rectangle)
{
#ifdef HAVE_CAIRO_GL
- display_create_drm_surface(display, rectangle);
+ return display_create_drm_surface(display, rectangle);
#else
- display_create_shm_surface(display, rectangle);
+ return display_create_shm_surface(display, rectangle);
#endif
}
@@ -445,9 +445,9 @@ display_create_surface_from_file(struct display *display,
struct rectangle *rectangle)
{
#ifdef HAVE_CAIRO_GL
- display_create_drm_surface_from_file(display, filename, rectangle);
+ return display_create_drm_surface_from_file(display, filename, rectangle);
#else
- display_create_shm_surface_from_file(display, filename, rectangle);
+ return display_create_shm_surface_from_file(display, filename, rectangle);
#endif
}
--
1.7.0.4
More information about the wayland-devel
mailing list