fix size stuff for square

This commit is contained in:
Julien Danjou 2007-12-30 14:06:45 +01:00
parent f7263bbca8
commit e57f387df0
2 changed files with 3 additions and 3 deletions

4
draw.c
View File

@ -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);

View File

@ -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;