From c81d880b4172d7556752d6b604af1b6580d684cc Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 4 May 2022 20:41:59 +0200 Subject: [PATCH] Don't crop screenshots for save file icons. Fixes borked save icons. --- Aquaria/DSQ.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aquaria/DSQ.cpp b/Aquaria/DSQ.cpp index 5d5aa88..a6ac0f3 100644 --- a/Aquaria/DSQ.cpp +++ b/Aquaria/DSQ.cpp @@ -2928,12 +2928,12 @@ void DSQ::doSaveSlotMenu(SaveSlotMode ssm, const Vector &position) os << dsq->getSaveDirectory() << "/screen-" << numToZeroString(selectedSaveSlot->getSlotIndex(), 4) << ".zga"; // 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 adjImageSize = scrShotWidth * adjHeight * 4; int adjOffset = scrShotWidth * ((scrShotHeight-adjHeight)/2) * 4; 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); }