summaryrefslogtreecommitdiff
path: root/gui/over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 23:57:56 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 23:57:56 -0300
commit77a63552d672bb69cd7dc58c3683e00b4ccef363 (patch)
treed5968baa7ffd01d9d6df43bc9368ab5c8a857ccb /gui/over.c
parent3f9ef0eeb5631a72f45468bfd581d2d0aea81208 (diff)
downloadeeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.tar.gz
eeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.tar.bz2
eeshow-77a63552d672bb69cd7dc58c3683e00b4ccef363.zip
eeshow/gui/over.c, over.h: make coordinates "int" (to avoid bad surprises)
Diffstat (limited to 'gui/over.c')
-rw-r--r--gui/over.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/over.c b/gui/over.c
index 3c54149..d58e6d7 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -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;