aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-07 19:53:23 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-07 19:53:23 +0100
commit757f906f81a86e5358e2fb55f528c972231c89e2 (patch)
treeb92293f6768dfcacb11b908d50a2bef07b4161f1 /src
parent1c1e91bd8bf4e9d08cd4d8ee41568e3d25ee8256 (diff)
downloadgold-mine-run-757f906f81a86e5358e2fb55f528c972231c89e2.tar.gz
gold-mine-run-757f906f81a86e5358e2fb55f528c972231c89e2.zip
16-bit is large enough
Diffstat (limited to 'src')
-rw-r--r--src/vga.c4
1 files 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++;