Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syscall_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void syscall_draw_frame_pal(struct riscv_t *rv)
uint32_t *d = pixels_ptr;
const uint8_t *p = i;
for (size_t y = 0; y < height; ++y) {
for (size_t x = 0; x < height; ++x) {
for (size_t x = 0; x < width; ++x) {
const uint8_t c = p[x];
const uint8_t *lut = j + (c * 3);
d[x] = (lut[0] << 16) | (lut[1] << 8) | lut[2];
Expand Down