From 813751d7549110861174912c9c12ea01dae0d084 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 10 May 2007 19:08:09 +0000 Subject: add frdrawseltick --- src/libframe/frdraw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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; } @@ -55,6 +55,12 @@ frdrawsel(Frame *f, Point pt, ulong p0, ulong p1, int issel) frdrawsel0(f, pt, p0, p1, back, text); } +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) { -- cgit v1.2.3