Skip to content

Commit

Permalink
fix: disable flickering when changing FPS in the options menu
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 authored and ninjamuffin99 committed Oct 10, 2024
1 parent e66290c commit b2647fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/funkin/ui/options/items/EnumPreferenceItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions source/funkin/ui/options/items/NumberPreferenceItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2647fe

Please sign in to comment.