From 6e2a077d6b377c4d562b83ecc12f2fd6b2c869f4 Mon Sep 17 00:00:00 2001 From: kade-github <26305836+Kade-github@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:43:02 -0700 Subject: [PATCH] Fixes from merge --- source/funkin/ui/options/PreferencesMenu.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/options/PreferencesMenu.hx b/source/funkin/ui/options/PreferencesMenu.hx index c16f8a783..bf78ca7f1 100644 --- a/source/funkin/ui/options/PreferencesMenu.hx +++ b/source/funkin/ui/options/PreferencesMenu.hx @@ -152,7 +152,8 @@ class PreferencesMenu extends Page createPrefItemCheckbox('Preview on save', 'If enabled, the preview will be shown only after a screenshot is saved.', function(value:Bool):Void { Preferences.previewOnSave = value; }, Preferences.previewOnSave); - createPrefItemEnum('Save Format', 'Save screenshots to this format.', ['PNG' => 'PNG', 'JPEG' => 'JPEG'], function(value:String):Void { + // TODO: having oValue is weird, probably change this later? was done to accomodate VSync changes. + createPrefItemEnum('Save Format', 'Save screenshots to this format.', ['PNG' => 'PNG', 'JPEG' => 'JPEG'], function(value:String, oValue:String):Void { Preferences.saveFormat = value; }, Preferences.saveFormat); createPrefItemNumber('JPEG Quality', 'The quality of JPEG screenshots.', function(value:Float) {