shithub: libgraphics

Download patch

ref: d22a9cf1583075186a19282c7566b520ec1dcd81
parent: 02c06cfbc711c01d22bb0c52f8440f7060c10916
author: rodri <rgl@antares-labs.eu>
date: Mon Apr 1 11:17:36 EDT 2024

can't always rely on screen being there.

--- a/util.c
+++ b/util.c
@@ -46,7 +46,7 @@
 {
 	Memimage *i;
 
-	i = eallocmemimage(UR, screen->chan);
+	i = eallocmemimage(UR, RGBA32);
 	i->flags |= Frepl;
 	i->clipr = Rect(-1e6, -1e6, 1e6, 1e6);
 	memfillcolor(i, c);