foxygit / fake-08-xbox360 Log in
commit e84e233a2e7a2c3d8bae1e02ad11fcdab0366513
Author:     DPS2004 <dpsophinos@gmail.com>
AuthorDate: Mon May 2 09:51:05 2022 -0400
Commit:     DPS2004 <dpsophinos@gmail.com>
CommitDate: Mon May 2 09:51:05 2022 -0400

    add forceStretch to opendingux
---
 platform/gcw0/source/ODHost.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/platform/gcw0/source/ODHost.cpp b/platform/gcw0/source/ODHost.cpp
index a9b8e89..f064c82 100644
--- a/platform/gcw0/source/ODHost.cpp
+++ b/platform/gcw0/source/ODHost.cpp
@@ -189,6 +189,8 @@ void _changeStretch(StretchOption newStretch){



+
+
 Host::Host() {
     #ifdef _GCW0
     _cartDirectory = "/media/sdcard/roms/PICO8";
@@ -307,6 +309,15 @@ void Host::changeStretch(){
     }
 }

+void Host::forceStretch(StretchOption newStretch) {
+	_changeStretch(newStretch);
+	stretch = newStretch;
+	scaleX = _screenWidth / (float)PicoScreenWidth;
+	scaleY = _screenHeight / (float)PicoScreenHeight;
+	mouseOffsetX = DestR.x;
+	mouseOffsetY = DestR.y;
+}
+
 InputState_t Host::scanInput(){
     currKDown = 0;
     currKHeld = 0;