aboutsummaryrefslogtreecommitdiff
path: root/src/libframe
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-05-10 19:08:09 +0000
committerrsc <devnull@localhost>2007-05-10 19:08:09 +0000
commit813751d7549110861174912c9c12ea01dae0d084 (patch)
tree40a76af59f07e657e4cffddf60e2043dd1673162 /src/libframe
parent35920e96a1bd6dcc5c803582ce9568c2f0a4fdc1 (diff)
downloadplan9port-813751d7549110861174912c9c12ea01dae0d084.tar.gz
plan9port-813751d7549110861174912c9c12ea01dae0d084.tar.bz2
plan9port-813751d7549110861174912c9c12ea01dae0d084.zip
add frdrawseltick
Diffstat (limited to 'src/libframe')
-rw-r--r--src/libframe/frdraw.c10
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;