From c1fd75a90b159dacb4e2f3febafcc8f2847d4953 Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 10 Aug 2023 08:56:11 -0700 Subject: [PATCH] Fixed issue with screen changed region --- src/devices/screen.c | 4 +++- src/uxn11.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 */ diff --git a/src/uxn11.c b/src/uxn11.c index 0f7395c..93459d8 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -219,7 +219,7 @@ main(int argc, char **argv) system_connect(0xc, DATETIME_VERSION, DATETIME_DEIMASK, DATETIME_DEOMASK); /* Read flags */ if(argv[i][0] == '-' && argv[i][1] == 'v') - return system_version("Uxn11 - Graphical Varvara Emulator", "9 Aug 2023"); + return system_version("Uxn11 - Graphical Varvara Emulator", "10 Aug 2023"); rom_path = argv[1]; if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))