commit b65a061

Devine Lu Linvega  ·  2026-06-07 17:15:09 +0000 UTC
parent 07938ae
Moved multiplication outside of zoom tighter loop
1 files changed,  +2, -2
+2, -2
 1@@ -423,8 +423,8 @@ screen_redraw(void)
 2 			const int ys = y * screen_zoom;
 3 			for(x = 0, i = (x + 8) + (y + 8) * screen_wmar2; x < screen_width; x++, i++) {
 4 				const int c = screen_palette[screen_layers[i]];
 5-				for(k = 0; k < screen_zoom; k++) {
 6-					const int oo = (ys + k) * stride + x * screen_zoom;
 7+				int oo = ys * stride + x * screen_zoom;
 8+				for(k = 0; k < screen_zoom; k++, oo += stride) {
 9 					for(l = 0; l < screen_zoom; l++)
10 						screen_pixels[oo + l] = c;
11 				}