summaryrefslogtreecommitdiff
path: root/gui
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
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')
-rw-r--r--gui/over.c9
-rw-r--r--gui/over.h2
2 files changed, 5 insertions, 6 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;
diff --git a/gui/over.h b/gui/over.h
index 3ead498..58a4e7d 100644
--- a/gui/over.h
+++ b/gui/over.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,