diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libframe/frdraw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libframe/frdraw.c b/src/libframe/frdraw.c index 5f0ae016..0592ec9c 100644 --- a/src/libframe/frdraw.c +++ b/src/libframe/frdraw.c @@ -32,7 +32,7 @@ nbytes(char *s0, int nr) } void -frdrawsel(Frame *f, Point pt, ulong p0, ulong p1, int issel) +frdrawseltick(Frame *f, Point pt, ulong p0, ulong p1, int issel, int ticked) { Image *back, *text; @@ -40,7 +40,7 @@ frdrawsel(Frame *f, Point pt, ulong p0, ulong p1, int issel) frtick(f, frptofchar(f, f->p0), 0); if(p0 == p1){ - frtick(f, pt, issel); + frtick(f, pt, issel && ticked); return; } @@ -56,6 +56,12 @@ frdrawsel(Frame *f, Point pt, ulong p0, ulong p1, int issel) } void +frdrawsel(Frame *f, Point pt, ulong p0, ulong p1, int issel) +{ + frdrawseltick(f, pt, p0, p1, issel, issel); +} + +void frdrawsel0(Frame *f, Point pt, ulong p0, ulong p1, Image *back, Image *text) { Frbox *b; |