ref: cb6f6fc863f56fecdf9adc97e0cd48255b14841c
parent: 67b35a1236760b836a33758a52406c0dd33e6815
author: qwx <qwx@sciops.net>
date: Sat Mar 9 16:14:53 EST 2024
fix not allocating backing canvas when starting up with image
--- a/canvas.c
+++ b/canvas.c
@@ -143,6 +143,8 @@
if((canvas = readimage(display, fd, 0)) == nil)
sysfatal("readimage: %r");
close(fd);
+ if((canvas2 = allocimage(display, canvas->r, screen->chan, 0, DNofill)) == nil)
+ sysfatal("allocimage: %r");
return;
}else if(!eqpt(sz, ZP))
r = Rpt(ZP, sz);