commit 45a65e48c24c1f5f4c6a97da97aa46eeaaa93eae
Author: DPS2004 <dpsophinos@gmail.com>
AuthorDate: Fri Mar 11 08:49:52 2022 -0500
Commit: DPS2004 <dpsophinos@gmail.com>
CommitDate: Mon May 2 09:40:37 2022 -0400
add stretch hotkey toggle support for other platforms
---
platform/3ds/source/3dsHost.cpp | 2 +-
platform/bittboy/source/BittBoyHost.cpp | 2 +-
platform/miyoomini/source/MiyooMiniHost.cpp | 2 +-
platform/wiiu/source/WiiUHost.cpp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/platform/3ds/source/3dsHost.cpp b/platform/3ds/source/3dsHost.cpp
index 4e452d5..d014bc1 100644
--- a/platform/3ds/source/3dsHost.cpp
+++ b/platform/3ds/source/3dsHost.cpp
@@ -412,7 +412,7 @@ void Host::setTargetFps(int targetFps){
}
void Host::changeStretch(){
- if (currKDown32 & KEY_SELECT) {
+ if ((currKDown32 & KEY_SELECT) && resizekey == YesResize) {
if (stretch == PixelPerfect) {
stretch = StretchToFit;
mouseOffsetX = (__3ds_BottomScreenWidth - __3ds_BottomScreenHeight) / 2;
diff --git a/platform/bittboy/source/BittBoyHost.cpp b/platform/bittboy/source/BittBoyHost.cpp
index c097e83..9edc195 100644
--- a/platform/bittboy/source/BittBoyHost.cpp
+++ b/platform/bittboy/source/BittBoyHost.cpp
@@ -254,7 +254,7 @@ void Host::setTargetFps(int targetFps){
}
void Host::changeStretch(){
- if (stretchKeyPressed) {
+ if (stretchKeyPressed && resizekey == YesResize) {
StretchOption newStretch = stretch;
if (stretch == StretchAndOverflow) {
diff --git a/platform/miyoomini/source/MiyooMiniHost.cpp b/platform/miyoomini/source/MiyooMiniHost.cpp
index d6bfce2..47005a6 100644
--- a/platform/miyoomini/source/MiyooMiniHost.cpp
+++ b/platform/miyoomini/source/MiyooMiniHost.cpp
@@ -290,7 +290,7 @@ void Host::setTargetFps(int targetFps){
}
void Host::changeStretch(){
- if (stretchKeyPressed) {
+ if (stretchKeyPressed && resizekey == YesResize) {
StretchOption newStretch = stretch;
if (stretch == PixelPerfectStretch) {
diff --git a/platform/wiiu/source/WiiUHost.cpp b/platform/wiiu/source/WiiUHost.cpp
index 54d7857..e6948b3 100644
--- a/platform/wiiu/source/WiiUHost.cpp
+++ b/platform/wiiu/source/WiiUHost.cpp
@@ -285,7 +285,7 @@ void Host::setTargetFps(int targetFps){
}
void Host::changeStretch(){
- if (stretchKeyPressed) {
+ if (stretchKeyPressed && resizekey == YesResize) {
if (stretch == PixelPerfectStretch) {
stretch = PixelPerfect;
}