summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-04-01 15:17:36 +0000
committerrodri <rgl@antares-labs.eu>2024-04-01 15:17:36 +0000
commitd22a9cf1583075186a19282c7566b520ec1dcd81 (patch)
tree626680d813f90693962838494e84665d4af6c392
parent02c06cfbc711c01d22bb0c52f8440f7060c10916 (diff)
downloadlibgraphics-d22a9cf1583075186a19282c7566b520ec1dcd81.tar.gz
libgraphics-d22a9cf1583075186a19282c7566b520ec1dcd81.tar.bz2
libgraphics-d22a9cf1583075186a19282c7566b520ec1dcd81.zip
can't always rely on screen being there.
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 2a4c7d6..0cd4354 100644
--- a/util.c
+++ b/util.c
@@ -46,7 +46,7 @@ rgb(ulong c)
{
Memimage *i;
- i = eallocmemimage(UR, screen->chan);
+ i = eallocmemimage(UR, RGBA32);
i->flags |= Frepl;
i->clipr = Rect(-1e6, -1e6, 1e6, 1e6);
memfillcolor(i, c);