diff options
author | qwx <devnull@localhost> | 2020-04-26 19:43:10 +0200 |
---|---|---|
committer | qwx <devnull@localhost> | 2020-04-26 19:43:10 +0200 |
commit | 0fc1abc73d813280fbd8e7119391a8c5c3d36b7c (patch) | |
tree | 8dcad5544e2c3289a0a57613ead4df9a8dda38e2 /sys/src/cmd/mothra/libpanel/textwin.c | |
parent | c6f7989176b9da3b977f397ac4f20bc2f86dec1b (diff) |
mothra: fix a few errors in previous patch
- nil check pl_blue allocation, and don't do it every time pl_rtdraw is called
- fix re-adding previously removed flushimage calls
- correct format for pointer
- sysfatal in pl_drawinit on error
Diffstat (limited to 'sys/src/cmd/mothra/libpanel/textwin.c')
-rw-r--r-- | sys/src/cmd/mothra/libpanel/textwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/libpanel/textwin.c b/sys/src/cmd/mothra/libpanel/textwin.c index f999867aa..bb00eff0d 100644 --- a/sys/src/cmd/mothra/libpanel/textwin.c +++ b/sys/src/cmd/mothra/libpanel/textwin.c @@ -136,7 +136,7 @@ void tw_draw(Textwin *t, int first, int last){ er=t->text+last; for(r=t->text+first,lp=t->loc+(first-t->top);r!=er;r++,lp++){ if(lp->y+t->hgt>t->r.max.y){ - fprint(2, "chr %C, index %lld of %d, loc %d %d, off bottom\n", + fprint(2, "chr %C, index %zd of %d, loc %d %d, off bottom\n", *r, lp-t->loc, t->bot-t->top, lp->x, lp->y); return; } |