We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b9001 commit 0cf86ecCopy full SHA for 0cf86ec
syscall_sdl.c
@@ -103,7 +103,7 @@ void syscall_draw_frame_pal(struct riscv_t *rv)
103
uint32_t *d = pixels_ptr;
104
const uint8_t *p = i;
105
for (size_t y = 0; y < height; ++y) {
106
- for (size_t x = 0; x < height; ++x) {
+ for (size_t x = 0; x < width; ++x) {
107
const uint8_t c = p[x];
108
const uint8_t *lut = j + (c * 3);
109
d[x] = (lut[0] << 16) | (lut[1] << 8) | lut[2];
0 commit comments