Skip to content

Commit

Permalink
remove wide screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Nov 21, 2024
1 parent e09da42 commit a2c7da7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 89 deletions.
3 changes: 0 additions & 3 deletions source/funkin/backend/system/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ import flixel.addons.transition.TransitionData;
import flixel.math.FlxPoint;
import flixel.math.FlxRect;
import funkin.backend.system.modules.*;
#if mobile
import mobile.funkin.backend.system.MobileRatioScaleMode as FunkinRatioScaleMode;
#end

#if ALLOW_MULTITHREADING
import sys.thread.Thread;
Expand Down
1 change: 0 additions & 1 deletion source/funkin/options/Options.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class Options
// mobile options
#if mobile
public static var screenTimeOut:Bool = false;
public static var wideScreen:Bool = false;
#end
public static var hideHitbox:Bool = false;
public static var hitboxType:String = 'gradient';
Expand Down
6 changes: 0 additions & 6 deletions source/funkin/options/categories/MobileOptions.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ class MobileOptions extends OptionsScreen {
"Allow Screen Timeout",
"If checked, The phone will enter sleep mode if the player is inactive.",
"screenTimeOut"));
add(new Checkbox(
"Wide Screen",
"If checked, It'll change aspect ratio of the game.",
"wideScreen"));
#end
#if android
add(new ArrayOption(
Expand All @@ -72,9 +68,7 @@ class MobileOptions extends OptionsScreen {
override function update(elapsed) {
#if mobile
final lastScreenTimeOut:Bool = Options.screenTimeOut;
final lastWideScreen:Bool = Options.wideScreen;
if (lastScreenTimeOut != Options.screenTimeOut) LimeSystem.allowScreenTimeout = Options.screenTimeOut;
if (lastWideScreen != Options.wideScreen) FlxG.scaleMode = new mobile.funkin.backend.system.MobileRatioScaleMode();
#end
super.update(elapsed);
}
Expand Down
79 changes: 0 additions & 79 deletions source/mobile/funkin/backend/system/MobileRatioScaleMode.hx

This file was deleted.

0 comments on commit a2c7da7

Please sign in to comment.