From e57f387df00b6f29c11e2fb53c9c5cdec6019edd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 30 Dec 2007 14:06:45 +0100 Subject: [PATCH] fix size stuff for square --- draw.c | 4 ++-- widgets/taglist.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/draw.c b/draw.c index cad2555dc..43fd03f92 100644 --- a/draw.c +++ b/draw.c @@ -115,11 +115,11 @@ draw_rectangle(DrawCtx *ctx, int x, int y, int w, int h, Bool filled, XColor col cairo_set_source_rgb(cr, color.red / 65535.0, color.green / 65535.0, color.blue / 65535.0); if(filled) { - cairo_rectangle(cr, x, y, w + 1, h + 1); + cairo_rectangle(cr, x, y, w, h); cairo_fill(cr); } else - cairo_rectangle(cr, x + 1, y, w, h); + cairo_rectangle(cr, x + 1, y, w - 1, h - 1); cairo_stroke(cr); diff --git a/widgets/taglist.c b/widgets/taglist.c index 86b0e592e..a9cf5ad6d 100644 --- a/widgets/taglist.c +++ b/widgets/taglist.c @@ -69,7 +69,7 @@ taglist_draw(Widget *widget, int w = 0, flagsize; XColor *colors; - flagsize = (vscreen.font->height + 2) / 4; + flagsize = (vscreen.font->height + 2) / 3; widget->width = 0;