Match LegoImage::Read

This commit is contained in:
Christian Semmler 2024-01-24 12:01:11 -05:00
parent 13fae65644
commit ad005febdd

View File

@ -109,10 +109,12 @@ LegoResult LegoImage::Read(LegoStorage* p_storage, LegoU32 p_square)
LegoU8* dst = newBits;
for (LegoU32 row = 0; row < m_height; row++) {
if (aspect) {
for (LegoU32 dup = aspect; dup; dup--) {
memcpy(dst, src, m_width);
dst += m_width;
}
}
src += m_width;
}
@ -126,10 +128,12 @@ LegoResult LegoImage::Read(LegoStorage* p_storage, LegoU32 p_square)
for (LegoU32 row = 0; row < m_height; row++) {
for (LegoU32 col = 0; col < m_width; col++) {
if (aspect) {
for (LegoU32 dup = aspect; dup; dup--) {
*dst = *src;
dst++;
}
}
src++;
}