diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-07 19:53:23 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-07 19:53:23 +0100 |
commit | 757f906f81a86e5358e2fb55f528c972231c89e2 (patch) | |
tree | b92293f6768dfcacb11b908d50a2bef07b4161f1 /src/vga.c | |
parent | 1c1e91bd8bf4e9d08cd4d8ee41568e3d25ee8256 (diff) | |
download | gold-mine-run-757f906f81a86e5358e2fb55f528c972231c89e2.tar.gz gold-mine-run-757f906f81a86e5358e2fb55f528c972231c89e2.zip |
16-bit is large enough
Diffstat (limited to 'src/vga.c')
-rw-r--r-- | src/vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; |