From c81edac18ebf8d836513dc63cb9e94b562ba062b Mon Sep 17 00:00:00 2001 From: Vortex2Oblivion <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:22:02 -0500 Subject: [PATCH 1/2] Fix some linux stuff --- Project.xml | 3 ++- source/funkin/ClientPrefs.hx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Project.xml b/Project.xml index f3b3ed42..d8e6758b 100644 --- a/Project.xml +++ b/Project.xml @@ -68,7 +68,7 @@ - + @@ -142,6 +142,7 @@ + diff --git a/source/funkin/ClientPrefs.hx b/source/funkin/ClientPrefs.hx index 3b372b2f..1bafe8d4 100644 --- a/source/funkin/ClientPrefs.hx +++ b/source/funkin/ClientPrefs.hx @@ -591,7 +591,7 @@ class ClientPrefs display: "Max Framerate", desc: "The highest framerate the game can hit.", type: Number, - value: #if !macro FlxG.stage!=null ? FlxG.stage.application.window.displayMode.refreshRate : #end 60, + value: #if (!macro && !linux) FlxG.stage!=null ? FlxG.stage.application.window.displayMode.refreshRate : #end 60, data: ["suffix" => " FPS", "min" => 30, "max" => 360, "step" => 1,] }, "lowQuality" => { @@ -800,7 +800,7 @@ class ClientPrefs static var optionSave:FlxSave = new FlxSave(); public static function initialize(){ - defaultOptionDefinitions.get("framerate").value = FlxG.stage.application.window.displayMode.refreshRate; + defaultOptionDefinitions.get("framerate").value = #if linux 60 #else FlxG.stage.application.window.displayMode.refreshRate #end; //locale = openfl.system.Capabilities.language; optionSave.bind("options_v2"); From 54fa34b2339f8cc92eca3364e53425f0fea6770b Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Wed, 5 Feb 2025 00:16:13 +0000 Subject: [PATCH 2/2] Add stage foreground on title screen --- source/funkin/states/TitleState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/states/TitleState.hx b/source/funkin/states/TitleState.hx index 8df1f741..f960feb1 100644 --- a/source/funkin/states/TitleState.hx +++ b/source/funkin/states/TitleState.hx @@ -212,6 +212,7 @@ class TitleState extends MusicBeatState camFollowPos.setPosition(camPos[0], camPos[1]); add(bg); + add(bg.foreground); }else{ camGame.bgColor = 0xFF000000; } @@ -576,4 +577,4 @@ class TitleLogo extends FlxSprite return titleNames; } -} \ No newline at end of file +}