1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Don't crop screenshots for save file icons. Fixes borked save icons.

This commit is contained in:
fgenesis 2022-05-04 20:41:59 +02:00
parent 764d106d50
commit c81d880b41

View file

@ -2928,12 +2928,12 @@ void DSQ::doSaveSlotMenu(SaveSlotMode ssm, const Vector &position)
os << dsq->getSaveDirectory() << "/screen-" << numToZeroString(selectedSaveSlot->getSlotIndex(), 4) << ".zga"; os << dsq->getSaveDirectory() << "/screen-" << numToZeroString(selectedSaveSlot->getSlotIndex(), 4) << ".zga";
// Cut off top and bottom to get a 4:3 aspect ratio. // Cut off top and bottom to get a 4:3 aspect ratio.
int adjHeight = (scrShotWidth * 3.0f) / 4.0f; /*int adjHeight = (scrShotWidth * 3.0f) / 4.0f;
int imageDataSize = scrShotWidth * scrShotHeight * 4; int imageDataSize = scrShotWidth * scrShotHeight * 4;
int adjImageSize = scrShotWidth * adjHeight * 4; int adjImageSize = scrShotWidth * adjHeight * 4;
int adjOffset = scrShotWidth * ((scrShotHeight-adjHeight)/2) * 4; int adjOffset = scrShotWidth * ((scrShotHeight-adjHeight)/2) * 4;
memmove(scrShotData, scrShotData + adjOffset, adjImageSize); memmove(scrShotData, scrShotData + adjOffset, adjImageSize);
memset(scrShotData + adjImageSize, 0, imageDataSize - adjImageSize); memset(scrShotData + adjImageSize, 0, imageDataSize - adjImageSize);*/
zgaSaveRGBA(os.str().c_str(), scrShotWidth, scrShotHeight, scrShotData); zgaSaveRGBA(os.str().c_str(), scrShotWidth, scrShotHeight, scrShotData);
} }