diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 18:03:33 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 18:34:04 -0700 |
| commit | 74bf3e1983ab557d236ee548494694692b1b1810 (patch) | |
| tree | 334d21357f0a22becbd8702e0ee7d43e17880833 /src/cairo-image.cpp | |
| parent | dce2ef51f242460df7e8526cb0625f8f16983a24 (diff) | |
Add device_config_t
This structure will be used for communicating various configuration
settings to the image, egl, and glx setup routines. For now just use it
for passing width/height and the surface type.
Diffstat (limited to 'src/cairo-image.cpp')
| -rw-r--r-- | src/cairo-image.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cairo-image.cpp b/src/cairo-image.cpp index 7a9755c..73bbad6 100644 --- a/src/cairo-image.cpp +++ b/src/cairo-image.cpp @@ -4,11 +4,12 @@ #include <cairo-gl.h> #include "image.h" +#include "device_config.h" static image_state_t *state; cairo_surface_t * -create_cairo_surface_image (int width, int height) +create_cairo_surface_image (const device_config_t& config) { cairo_surface_t *cairo_surface; @@ -27,8 +28,8 @@ create_cairo_surface_image (int width, int height) */ cairo_surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, - width, - height); + config.width, + config.height); return cairo_surface; } |