From 757f906f81a86e5358e2fb55f528c972231c89e2 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 7 Jun 2023 19:53:23 +0100 Subject: 16-bit is large enough --- src/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vga.c b/src/vga.c index e2fb7f9..f2934a4 100644 --- a/src/vga.c +++ b/src/vga.c @@ -46,8 +46,8 @@ void set_palette(const uint8_t *palette) void blit(const uint8_t *src, uint16_t x, uint16_t y, uint16_t w, uint16_t h) { - for (int32_t j = y; j < y + h; j++) - for (int32_t i = x; i < x + w; i++) + for (int16_t j = y; j < y + h; j++) + for (int16_t i = x; i < x + w; i++) { uint8_t b = *src++; -- cgit v1.2.3