commit eb115a1ac481f5cab9775391da9496c2e3d5b230
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Mon Apr 12 18:29:59 2021 -0600
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Mon Apr 12 18:29:59 2021 -0600
Fix 3ds saving stretch option
---
platform/3ds/source/3dsHost.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/platform/3ds/source/3dsHost.cpp b/platform/3ds/source/3dsHost.cpp
index 7da7cdd..41cee6a 100644
--- a/platform/3ds/source/3dsHost.cpp
+++ b/platform/3ds/source/3dsHost.cpp
@@ -235,6 +235,8 @@ void Host::oneTimeSetup(Color* paletteColors, Audio* audio){
}
void Host::oneTimeCleanup(){
+ saveSettingsIni();
+
audioCleanup();
gfxExit();
@@ -252,7 +254,7 @@ void Host::changeStretch(){
else if (stretch == StretchToFit) {
stretch = StretchAndOverflow;
}
- else if (stretch == StretchAndOverflow) {
+ else {
stretch = PixelPerfect;
}
@@ -360,7 +362,7 @@ void Host::drawFrame(uint8_t* picoFb, uint8_t* screenPaletteMap){
}
}
}
- else if (stretch == StretchAndOverflow || stretch == PixelPerfectStretch) {
+ else {
//assume landscape, hardcoded double for now (3ds)
int ratio = 2;
int stretchedWidth = PicoScreenWidth * ratio;