mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-05 03:38:05 +02:00
eeshow/gui/over.c, over.h: make coordinates "int" (to avoid bad surprises)
This commit is contained in:
parent
e88fd0ac6c
commit
3affbc3c3c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user