ref: 1d83bed5f3c81629b570006186a1fa0ff299a4a7
parent: 497ac91cd005e9bb565f97c57671dc7d554fc933
author: Aaron Bieber <aaron@bolddaemon.com>
date: Sat Nov 18 23:10:08 EST 2023
+ptches
--- /dev/null
+++ b/patches/rio-background.patch
@@ -1,0 +1,18 @@
+diff 3280b43ee0fd08655497989df40e540760f24384 uncommitted
+--- a/sys/src/cmd/rio/data.c
++++ b/sys/src/cmd/rio/data.c
+@@ -187,7 +187,13 @@
+ void
+ iconinit(void)
+ {
+- background = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x777777FF);
++ int fd;
++ fd = open("/cfg/background.img", OREAD);
++ if(fd>0) {
++ background = readimage(display, fd, 0);
++ } else {
++ background = allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x777777FF);
++ }
+
+ /* greys are multiples of 0x11111100+0xFF, 14* being palest */
+ cols[BACK] = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xFFFFFFFF^reverse);