This commit is contained in:
CatWindow 2026-08-19 20:03:25 +03:00
parent dcd7c362a5
commit 8c0399cc98
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@ void graphicsBindingInit(){
_rb_define_module_function(module, "freeze", graphicsFreeze);
_rb_define_module_function(module, "transition", graphicsTransition);
_rb_define_module_function(module, "frame_reset", graphicsFrameReset);
_rb_define_module_function(module, "setVsync", graphicsSetVsync);
_rb_define_module_function(module, "vsync_mode=", graphicsSetVsync);
_rb_define_module_function(module, "__reset__", graphicsReset);
// Variables

View file

@ -52,7 +52,7 @@ module Settings
VSYNC_MODES = [1, -1, 0]
def vsync(value)
Graphics.setVsync(VSYNC_MODES[value])
Graphics.vsync_mode = VSYNC_MODES[value]
end
# ----------------------------------------------- UI -----------------------------------------------