diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2020-04-25 21:53:54 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2020-04-25 21:53:54 -0400 |
commit | 9a7c5d56539b94a10ce75e63113b2d351e55e143 (patch) | |
tree | ec3dc11234f044d84843c2b5ee7a2ac4b9c10ce3 /sys/src/cmd/mothra/libpanel/textview.c | |
parent | 60c34ebb2da2b9716169ae4e6db4816d02c28910 (diff) |
mothra: remove extraneous lines and decoration (fake 3d). patch extracted from my forked mess by Ori_B.
Diffstat (limited to 'sys/src/cmd/mothra/libpanel/textview.c')
-rw-r--r-- | sys/src/cmd/mothra/libpanel/textview.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/mothra/libpanel/textview.c b/sys/src/cmd/mothra/libpanel/textview.c index 6d561660e..f93cb8ef0 100644 --- a/sys/src/cmd/mothra/libpanel/textview.c +++ b/sys/src/cmd/mothra/libpanel/textview.c @@ -47,7 +47,7 @@ void pl_drawtextview(Panel *p){ Point size; tp=p->data; - r=pl_outline(p->b, p->r, UP); + r=pl_outline(p->b, p->r, TUP); twid=r.max.x-r.min.x; if(twid!=tp->twid){ tp->twid=twid; @@ -80,7 +80,7 @@ int pl_hittextview(Panel *p, Mouse *m){ if(oldhitword==oldhitfirst) pl_passon(oldhitword, m); if(m->buttons&OUT) - p->state=UP; + p->state=PASSIVE; else if(m->buttons&7){ p->state=DOWN; tp->buttons=m->buttons; @@ -100,7 +100,7 @@ int pl_hittextview(Panel *p, Mouse *m){ } else{ if(p->state==DOWN) hitme=1; - p->state=UP; + p->state=PASSIVE; } if(tp->hitfirst!=oldhitfirst || tp->hitword!=oldhitword){ plrtseltext(tp->text, tp->hitword, tp->hitfirst); @@ -214,7 +214,7 @@ void plinittextview(Panel *v, int flags, Point minsize, Rtext *t, void (*hit)(Pa Textview *tp; tp=v->data; v->flags=flags|LEAF; - v->state=UP; + v->state=PASSIVE; v->draw=pl_drawtextview; v->hit=pl_hittextview; v->type=pl_typetextview; |