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:
parent
015072fea4
commit
c7884b625f
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue