0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-10 16:25:05 +00:00

Fixed issue where redraw region always started at 0

This commit is contained in:
neauoire 2023-08-10 08:47:34 -07:00
parent 015072fea4
commit c7884b625f

View file

@ -1,4 +1,5 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#include "../uxn.h" #include "../uxn.h"
#include "screen.h" #include "screen.h"
@ -126,7 +127,8 @@ screen_redraw(void)
i = x + y * w; i = x + y * w;
pixels[i] = palette[fg[i] << 2 | bg[i]]; 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 */ /* clang-format off */