summaryrefslogtreecommitdiff
path: root/gfx/cro.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 15:05:34 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 15:05:34 -0300
commit39fe8984c452f304b2946bf3125512499aa714dc (patch)
tree478f1b590b1c27be81a9d73d43586a7d75b35470 /gfx/cro.h
parent7ddbb6d35f2af3be0ede0d13bf795b2333739e61 (diff)
downloadeeshow-39fe8984c452f304b2946bf3125512499aa714dc.tar.gz
eeshow-39fe8984c452f304b2946bf3125512499aa714dc.tar.bz2
eeshow-39fe8984c452f304b2946bf3125512499aa714dc.zip
eeshow/gfx/: don't overthink coordinate transforms
The xe/ye element was completely unnecessary because we never have an offset at the pixel level. Furthermore, it was used incorrectly, causing a shift between old and new when xmin/ymin differed.
Diffstat (limited to 'gfx/cro.h')
-rw-r--r--gfx/cro.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gfx/cro.h b/gfx/cro.h
index 954a3d7..3e9d9fd 100644
--- a/gfx/cro.h
+++ b/gfx/cro.h
@@ -44,7 +44,6 @@ void cro_canvas_draw(struct cro_ctx *cc, cairo_t *cr,
int x, int y, float scale);
uint32_t *cro_img(struct cro_ctx *ctx, int x0, int yo, int w, int h,
- int xe, int ye,
float scale, cairo_t **res_cr, int *res_stride);
#endif /* !GFX_CRO_H */