no more biting
This commit is contained in:
parent
2d23eb93a0
commit
cee7a6ab10
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ frtick(Frame *f, Point pt, int ticked)
|
||||||
return;
|
return;
|
||||||
pt.x--; /* looks best just left of where requested */
|
pt.x--; /* looks best just left of where requested */
|
||||||
r = Rect(pt.x, pt.y, pt.x+FRTICKW, pt.y+f->font->height);
|
r = Rect(pt.x, pt.y, pt.x+FRTICKW, pt.y+f->font->height);
|
||||||
|
/* can go into left border but not right */
|
||||||
|
if(r.max.x > f->r.max.x)
|
||||||
|
r.max.x = f->r.max.x;
|
||||||
if(ticked){
|
if(ticked){
|
||||||
draw(f->tickback, f->tickback->r, f->b, nil, pt);
|
draw(f->tickback, f->tickback->r, f->b, nil, pt);
|
||||||
draw(f->b, r, f->tick, nil, ZP);
|
draw(f->b, r, f->tick, nil, ZP);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue