diff options
author | Werner Almesberger <werner@almesberger.net> | 2016-08-20 23:57:56 -0300 |
---|---|---|
committer | Werner Almesberger <werner@almesberger.net> | 2016-08-20 23:57:56 -0300 |
commit | 77a63552d672bb69cd7dc58c3683e00b4ccef363 (patch) | |
tree | d5968baa7ffd01d9d6df43bc9368ab5c8a857ccb | |
parent | 3f9ef0eeb5631a72f45468bfd581d2d0aea81208 (diff) | |
download | eeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.tar.gz eeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.tar.bz2 eeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.zip |
eeshow/gui/over.c, over.h: make coordinates "int" (to avoid bad surprises)
-rw-r--r-- | gui/over.c | 9 | ||||
-rw-r--r-- | gui/over.h | 2 |
2 files changed, 5 insertions, 6 deletions
@@ -71,7 +71,7 @@ static void rrect(cairo_t *cr, double x, double y, double w, double h, int r) static void background(const struct overlay *over, cairo_t *cr, - unsigned x, unsigned y, unsigned w, unsigned h) + int x, int y, unsigned w, unsigned h) { const struct overlay_style *style = &over->style; const struct color *bg = &style->bg; @@ -90,8 +90,7 @@ static void background(const struct overlay *over, cairo_t *cr, } -static void post_aoi(struct overlay *over, - unsigned x, unsigned y, unsigned w, unsigned h) +static void post_aoi(struct overlay *over, int x, int y, unsigned w, unsigned h) { struct aoi aoi_cfg = { .x = x, @@ -120,7 +119,7 @@ static void post_aoi(struct overlay *over, static unsigned overlay_draw(struct overlay *over, cairo_t *cr, - unsigned x, unsigned y, int dx, int dy) + int x, int y, int dx, int dy) { const struct overlay_style *style = &over->style; const struct color *fg = &style->fg; @@ -204,7 +203,7 @@ fprintf(stderr, "%u(%d) %u %.60s\n", ty, ink_rect.y / PANGO_SCALE, ink_h, over-> void overlay_draw_all_d(struct overlay *overlays, cairo_t *cr, - unsigned x, unsigned y, int dx, int dy) + int x, int y, int dx, int dy) { struct overlay *over = overlays; unsigned h; @@ -45,7 +45,7 @@ struct overlay; void overlay_draw_all_d(struct overlay *overlays, cairo_t *cr, - unsigned x, unsigned y, int dx, int dy); + int x, int y, int dx, int dy); void overlay_draw_all(struct overlay *overlays, cairo_t *cr, int x, int y); void overlay_size(const struct overlay *over, PangoContext *pango_context, |