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/rtext.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/rtext.c')
-rw-r--r-- | sys/src/cmd/mothra/libpanel/rtext.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/libpanel/rtext.c b/sys/src/cmd/mothra/libpanel/rtext.c index 658831f8e..192c4354f 100644 --- a/sys/src/cmd/mothra/libpanel/rtext.c +++ b/sys/src/cmd/mothra/libpanel/rtext.c @@ -175,9 +175,7 @@ void pl_rtdraw(Image *b, Rectangle r, Rtext *t, Point offs){ Point lp, sp; Rectangle dr; Image *bb; - Image *pl_blue; - pl_blue=allocimage(display, Rect(0,0,1,1), RGB24, 1, 0x0000FFFF); bb = b; if(backup==0 || backup->chan!=b->chan || rectinrect(r, backup->r)==0){ freeimage(backup); |