mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
fix size stuff for square
This commit is contained in:
parent
f7263bbca8
commit
e57f387df0
2 changed files with 3 additions and 3 deletions
4
draw.c
4
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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue