Fixed issue with screen changed region

This commit is contained in:
neauoire 2023-08-10 08:56:11 -07:00
parent 86c26de680
commit c1fd75a90b
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -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))))