Skip to content

Commit b2647fe

Browse files
lemz1ninjamuffin99
authored andcommitted
fix: disable flickering when changing FPS in the options menu
1 parent e66290c commit b2647fe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/funkin/ui/options/items/EnumPreferenceItem.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class EnumPreferenceItem extends TextMenuItem
4646
}
4747

4848
lefthandText = new AtlasText(15, y, formatted(defaultValue), AtlasFont.DEFAULT);
49+
50+
this.fireInstantly = true;
4951
}
5052

5153
override function update(elapsed:Float):Void

source/funkin/ui/options/items/NumberPreferenceItem.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class NumberPreferenceItem extends TextMenuItem
5858
this.precision = precision;
5959
this.onChangeCallback = callback;
6060
this.valueFormatter = valueFormatter;
61+
62+
this.fireInstantly = true;
6163
}
6264

6365
override function update(elapsed:Float):Void

0 commit comments

Comments
 (0)