uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit c7884b625f55b9fea5cf031722e0cf9094752e34
parent 015072fea4e7be40644359c46e2a3b775b5913f5
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 10 Aug 2023 08:47:34 -0700

Fixed issue where redraw region always started at 0

Diffstat:
Msrc/devices/screen.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/devices/screen.c b/src/devices/screen.c @@ -1,4 +1,5 @@ #include <stdlib.h> +#include <stdio.h> #include "../uxn.h" #include "screen.h" @@ -126,7 +127,8 @@ screen_redraw(void) i = x + y * w; pixels[i] = palette[fg[i] << 2 | bg[i]]; } - uxn_screen.x1 = uxn_screen.y1 = uxn_screen.x2 = uxn_screen.y2 = 0; + uxn_screen.x1 = uxn_screen.y1 = 0xffff; + uxn_screen.x2 = uxn_screen.y2 = 0; } /* clang-format off */