From c7884b625f55b9fea5cf031722e0cf9094752e34 Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 10 Aug 2023 08:47:34 -0700 Subject: [PATCH] Fixed issue where redraw region always started at 0 --- src/devices/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/screen.c b/src/devices/screen.c index 0789045..f28bf82 100644 --- a/src/devices/screen.c +++ b/src/devices/screen.c @@ -1,4 +1,5 @@ #include +#include #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 */