shithub: riscv

Download patch

ref: 8d578014cf6a76c55e6178d96ffd3c2ad134641a
parent: 24286fa2847a7624de58d699d55af8ef31697b35
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 6 18:44:36 EDT 2021

rio: match background screen color format (thanks noam)

--- a/sys/src/cmd/rio/data.c
+++ b/sys/src/cmd/rio/data.c
@@ -175,7 +175,7 @@
 void
 iconinit(void)
 {
-	background = allocimage(display, Rect(0,0,1,1), RGB24, 1, 0x777777FF);
+	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);