mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Match LegoImage::Read
This commit is contained in:
parent
13fae65644
commit
ad005febdd
@ -109,10 +109,12 @@ LegoResult LegoImage::Read(LegoStorage* p_storage, LegoU32 p_square)
|
|||||||
LegoU8* dst = newBits;
|
LegoU8* dst = newBits;
|
||||||
|
|
||||||
for (LegoU32 row = 0; row < m_height; row++) {
|
for (LegoU32 row = 0; row < m_height; row++) {
|
||||||
|
if (aspect) {
|
||||||
for (LegoU32 dup = aspect; dup; dup--) {
|
for (LegoU32 dup = aspect; dup; dup--) {
|
||||||
memcpy(dst, src, m_width);
|
memcpy(dst, src, m_width);
|
||||||
dst += m_width;
|
dst += m_width;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
src += 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 row = 0; row < m_height; row++) {
|
||||||
for (LegoU32 col = 0; col < m_width; col++) {
|
for (LegoU32 col = 0; col < m_width; col++) {
|
||||||
|
if (aspect) {
|
||||||
for (LegoU32 dup = aspect; dup; dup--) {
|
for (LegoU32 dup = aspect; dup; dup--) {
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
dst++;
|
dst++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
src++;
|
src++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user