summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-09-23 12:11:21 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-09-23 12:11:21 +0200
commitf68d096fb77889f8cf74ecc383632b105c3da21d (patch)
tree9e49eb44c22a2fab8b15115193895838981df522 /sys/src/cmd/mothra
parentda8dd94a7a6c759c499b3dd67423f293e3104c75 (diff)
mothra: dont highlight subpanels in textview
Diffstat (limited to 'sys/src/cmd/mothra')
-rw-r--r--sys/src/cmd/mothra/libpanel/rtext.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/libpanel/rtext.c b/sys/src/cmd/mothra/libpanel/rtext.c
index c9aa548fe..a3debb55b 100644
--- a/sys/src/cmd/mothra/libpanel/rtext.c
+++ b/sys/src/cmd/mothra/libpanel/rtext.c
@@ -182,16 +182,19 @@ void pl_rtdraw(Image *b, Rectangle r, Rtext *t, int yoffs){
if(t->b){
draw(b, insetrect(dr, BORD), t->b, 0, t->b->r.min);
if(t->flags&PL_HOT) border(b, dr, 1, display->black, ZP);
+ if(t->flags&PL_SEL)
+ pl_highlight(b, dr);
}
else if(t->p){
plmove(t->p, subpt(dr.min, t->p->r.min));
pldraw(t->p, b);
-
if(b != bb)
pl_stuffbitmap(t->p, bb);
}
else{
string(b, dr.min, display->black, ZP, t->font, t->text);
+ if(t->flags&PL_SEL)
+ pl_highlight(b, dr);
if(t->flags&PL_HOT){
if(lp.y+1 != dr.max.y)
lp = Pt(dr.min.x, dr.max.y-1);
@@ -199,13 +202,10 @@ void pl_rtdraw(Image *b, Rectangle r, Rtext *t, int yoffs){
Endsquare, Endsquare, 0,
display->black, ZP);
lp = Pt(dr.max.x, dr.max.y-1);
- goto Cont;
+ continue;
}
}
lp=ZP;
- Cont:
- if(t->flags&PL_SEL)
- pl_highlight(b, dr);
}
}