summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 01:54:40 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 01:55:49 -0300
commit03a241809ee91fb0addd685a71d3c98c69e4c868 (patch)
treef6c48e9e8d79d53a44932448b42098b0c3d7320d /gfx
parent840efa7b27c37a354d49460a5c8097b5a9eeba7c (diff)
downloadeeshow-03a241809ee91fb0addd685a71d3c98c69e4c868.tar.gz
eeshow-03a241809ee91fb0addd685a71d3c98c69e4c868.tar.bz2
eeshow-03a241809ee91fb0addd685a71d3c98c69e4c868.zip
gfx/cro.c (cro_img_surface): access the surface created by cro_img
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c8
-rw-r--r--gfx/cro.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 54b08a3..5ac56bd 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -624,6 +624,14 @@ uint32_t *cro_img(struct cro_ctx *ctx, struct cro_ctx *ctx_extra,
}
+/* @@@ redesign this when we get a bit more serious about cleaning up */
+
+cairo_surface_t *cro_img_surface(struct cro_ctx *ctx)
+{
+ return ctx->s;
+}
+
+
/* ----- Operations -------------------------------------------------------- */
diff --git a/gfx/cro.h b/gfx/cro.h
index 270231c..c7edd4a 100644
--- a/gfx/cro.h
+++ b/gfx/cro.h
@@ -46,5 +46,6 @@ void cro_canvas_draw(struct cro_ctx *cc, cairo_t *cr,
uint32_t *cro_img(struct cro_ctx *ctx, struct cro_ctx *ctx_extra,
int x0, int yo, int w, int h,
float scale, cairo_t **res_cr, int *res_stride);
+cairo_surface_t *cro_img_surface(struct cro_ctx *ctx);
#endif /* !GFX_CRO_H */