From b2647fe09f5281ce7074b26d47bc1524764168ee Mon Sep 17 00:00:00 2001 From: lemz1 Date: Wed, 9 Oct 2024 20:50:13 +0200 Subject: [PATCH] fix: disable flickering when changing FPS in the options menu --- source/funkin/ui/options/items/EnumPreferenceItem.hx | 2 ++ source/funkin/ui/options/items/NumberPreferenceItem.hx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/funkin/ui/options/items/EnumPreferenceItem.hx b/source/funkin/ui/options/items/EnumPreferenceItem.hx index 02a273353..0054d3efe 100644 --- a/source/funkin/ui/options/items/EnumPreferenceItem.hx +++ b/source/funkin/ui/options/items/EnumPreferenceItem.hx @@ -46,6 +46,8 @@ class EnumPreferenceItem extends TextMenuItem } lefthandText = new AtlasText(15, y, formatted(defaultValue), AtlasFont.DEFAULT); + + this.fireInstantly = true; } override function update(elapsed:Float):Void diff --git a/source/funkin/ui/options/items/NumberPreferenceItem.hx b/source/funkin/ui/options/items/NumberPreferenceItem.hx index f3cd3cd46..e53951df7 100644 --- a/source/funkin/ui/options/items/NumberPreferenceItem.hx +++ b/source/funkin/ui/options/items/NumberPreferenceItem.hx @@ -58,6 +58,8 @@ class NumberPreferenceItem extends TextMenuItem this.precision = precision; this.onChangeCallback = callback; this.valueFormatter = valueFormatter; + + this.fireInstantly = true; } override function update(elapsed:Float):Void