shithub: cstory

Download patch

ref: b0612e5369801cbe8e1fa7f2d2dd69b2ba736170
parent: 13a941975d4fe48ec6ac54d54a5a35d05fa2116e
author: Jacob Moody <moody@posixcafe.org>
date: Mon Dec 18 19:35:14 EST 2023

correct ColourFill color calculation and destination rect

--- a/src/Backends/Rendering/9front.cpp
+++ b/src/Backends/Rendering/9front.cpp
@@ -233,8 +233,8 @@
 		return;
 
 	r = Rect(rect_clamped.left, rect_clamped.top, rect_clamped.right, rect_clamped.bottom);
-	color = allocimage(display, Rect(0, 0, 1, 1), BGR24, 1, (red<<16)|(green<<8)|(blue<<0) );
-	draw(surface->i, surface->i->r, color, nil, ZP);
+	color = allocimage(display, Rect(0, 0, 1, 1), BGR24, 1, (red<<24)|(green<<16)|(blue<<8)|0xFF);
+	draw(surface->i, r, color, nil, ZP);
 	freeimage(color);
 	surface->dirty = 1;
 }