aboutsummaryrefslogtreecommitdiff
path: root/src/libframe
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-01-12 04:44:25 +0000
committerrsc <devnull@localhost>2006-01-12 04:44:25 +0000
commitcee7a6ab10235f764435f394d98b9c1e33b4eeb4 (patch)
treec4bd2faf527279e3ceadcf895bceb3c339c9d882 /src/libframe
parent2d23eb93a0573b4dbe2ecc0a2a157c9e57368dd1 (diff)
downloadplan9port-cee7a6ab10235f764435f394d98b9c1e33b4eeb4.tar.gz
plan9port-cee7a6ab10235f764435f394d98b9c1e33b4eeb4.tar.bz2
plan9port-cee7a6ab10235f764435f394d98b9c1e33b4eeb4.zip
no more biting
Diffstat (limited to 'src/libframe')
-rw-r--r--src/libframe/frdraw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libframe/frdraw.c b/src/libframe/frdraw.c
index 8f238c1f..5f0ae016 100644
--- a/src/libframe/frdraw.c
+++ b/src/libframe/frdraw.c
@@ -123,6 +123,9 @@ frtick(Frame *f, Point pt, int ticked)
return;
pt.x--; /* looks best just left of where requested */
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){
draw(f->tickback, f->tickback->r, f->b, nil, pt);
draw(f->b, r, f->tick, nil, ZP);