diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-06-17 15:56:48 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-06-17 18:15:34 -0700 |
| commit | 081145be27acbff75773a8f5a03a774224221d5d (patch) | |
| tree | 849dc200734e5bf55cc7564fe0272472acd7019f /src/cairo-image.cpp | |
| parent | e7858e8d4d7f9788eaac04b50ed3b87c9f8bb112 (diff) | |
Refactor egl/glx/image code to be more stylistically consistent
Diffstat (limited to 'src/cairo-image.cpp')
| -rw-r--r-- | src/cairo-image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-image.cpp b/src/cairo-image.cpp index 1d6d918..a4daa8f 100644 --- a/src/cairo-image.cpp +++ b/src/cairo-image.cpp @@ -8,6 +8,7 @@ #include <err.h> #include <stdlib.h> + #include <cairo.h> #include "forward.h" @@ -16,7 +17,7 @@ static image_state_t *state; cairo_surface_t *cairo_surface; -static int +static bool convert_cairo_surface_to_ximage (cairo_surface_t *surface) { unsigned char *data = cairo_image_surface_get_data (surface); @@ -31,8 +32,7 @@ convert_cairo_surface_to_ximage (cairo_surface_t *surface) state->image.depth = 32; state->image.bytes_per_line = state->image.width * 4; state->image.bits_per_pixel = 4 * 8; - Status status = XInitImage (&state->image); - return status; + return XInitImage (&state->image); } cairo_surface_t * |