diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 14:18:10 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 14:18:10 +0100 |
commit | ae4b80050c7f86ea9e6f20937a925f4a03c028c7 (patch) | |
tree | 514ab1c6e37a9b44fd45cd6e93c3b03f78a1334e /src/vga.c | |
parent | 6f18c3bae8c64ad52b541f95dde10110697e8b20 (diff) | |
download | gold-mine-run-ae4b80050c7f86ea9e6f20937a925f4a03c028c7.tar.gz gold-mine-run-ae4b80050c7f86ea9e6f20937a925f4a03c028c7.zip |
Potentially faster
Diffstat (limited to 'src/vga.c')
-rw-r--r-- | src/vga.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -176,8 +176,9 @@ void read_buffer(uint8_t *dst, const Rect *src) for (int8_t j = 0; j < src->h; j++) { - memcpy(dst, s, src->w); - dst += src->w; - s += 320; + for (int8_t i = 0; i < src->w; i++) + *dst++ = *s++; + + s += 320 - src->w; } } |