summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/libpanel/popup.c
diff options
context:
space:
mode:
authorqwx <devnull@localhost>2020-04-26 19:43:10 +0200
committerqwx <devnull@localhost>2020-04-26 19:43:10 +0200
commit0fc1abc73d813280fbd8e7119391a8c5c3d36b7c (patch)
tree8dcad5544e2c3289a0a57613ead4df9a8dda38e2 /sys/src/cmd/mothra/libpanel/popup.c
parentc6f7989176b9da3b977f397ac4f20bc2f86dec1b (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/popup.c')
-rw-r--r--sys/src/cmd/mothra/libpanel/popup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/libpanel/popup.c b/sys/src/cmd/mothra/libpanel/popup.c
index a3007bbb8..ea3bde177 100644
--- a/sys/src/cmd/mothra/libpanel/popup.c
+++ b/sys/src/cmd/mothra/libpanel/popup.c
@@ -65,7 +65,6 @@ int pl_hitpopup(Panel *g, Mouse *m){
if(g->state!=DOWN){
if(pp->save!=0){
draw(g->b, p->r, pp->save, 0, p->r.min);
- flushimage(display, 1);
freeimage(pp->save);
pp->save=0;
}