trim button & modbutton images
This commit is contained in:
parent
6f35cfa6b6
commit
a2422a89c5
1 changed files with 1 additions and 3 deletions
|
|
@ -1054,7 +1054,7 @@ iconinit(void)
|
|||
textcols[HTEXT] = display->black;
|
||||
}
|
||||
|
||||
r = Rect(0, 0, Scrollwid+ButtonBorder, font->height+1);
|
||||
r = Rect(0, 0, Scrollwid, font->height+1);
|
||||
if(button && eqrect(r, button->r))
|
||||
return;
|
||||
|
||||
|
|
@ -1066,13 +1066,11 @@ iconinit(void)
|
|||
|
||||
button = allocimage(display, r, screen->chan, 0, DNofill);
|
||||
draw(button, r, tagcols[BACK], nil, r.min);
|
||||
r.max.x -= ButtonBorder;
|
||||
border(button, r, ButtonBorder, tagcols[BORD], ZP);
|
||||
|
||||
r = button->r;
|
||||
modbutton = allocimage(display, r, screen->chan, 0, DNofill);
|
||||
draw(modbutton, r, tagcols[BACK], nil, r.min);
|
||||
r.max.x -= ButtonBorder;
|
||||
border(modbutton, r, ButtonBorder, tagcols[BORD], ZP);
|
||||
r = insetrect(r, ButtonBorder);
|
||||
tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue