ref: d1560da21713226fc76e0a03b23e2748d1c1a2c4
parent: 08b14fa03f5225428d17a9c8022f26c599e68f25
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Sep 16 13:45:15 EDT 2020
Fix bitmaps at 640x480
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -167,7 +167,7 @@
for (size_t y = 0; y < height; ++y)
{
const unsigned char *src_row = &image_buffer[y * width * 3];
- unsigned char *dst_row = &upscaled_image_buffer[y * width * 3 * mag];
+ unsigned char *dst_row = &upscaled_image_buffer[y * mag * width * mag * 3];
const unsigned char *src_ptr = src_row;
unsigned char *dst_ptr = dst_row;
@@ -185,7 +185,7 @@
}
for (int i = 1; i < mag; ++i)
- memcpy(dst_row + i * width * 3, dst_row, width * mag * 3);
+ memcpy(dst_row + i * width * mag * 3, dst_row, width * mag * 3);
}
RenderBackend_UploadSurface(surf[surf_no], upscaled_image_buffer, width * mag, height * mag);