From 04da5ad4470975885b4d68d7cb1c833cb88adc0f Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Mon, 3 Apr 2017 03:06:20 -0700 Subject: [PATCH] Update oneshot-binding.cpp --- binding-mri/oneshot-binding.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/binding-mri/oneshot-binding.cpp b/binding-mri/oneshot-binding.cpp index 6c5fa6f..883746a 100644 --- a/binding-mri/oneshot-binding.cpp +++ b/binding-mri/oneshot-binding.cpp @@ -68,16 +68,16 @@ RB_METHOD(oneshotShake) return Qnil; } -RB_METHOD(oneshotmovewindow) +RB_METHOD(oneshotSetWindowPos) { RB_UNUSED_PARAM; int x, y; - rb_get_args(argc, argv, "ii", &x, &y, RB_ARG_END); + rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END); SDL_SetWindowPosition(shState->rtData().window, x, y); return Qnil; } -RB_METHOD(oneshotgetwindowpos) +RB_METHOD(oneshotGetWindowPos) { RB_UNUSED_PARAM; int x, y; @@ -112,6 +112,6 @@ void oneshotBindingInit() _rb_define_module_function(module, "obscured_cleared?", oneshotObscuredCleared); _rb_define_module_function(module, "allow_exit", oneshotAllowExit); _rb_define_module_function(module, "shake", oneshotShake); - _rb_define_module_function(module, "getwinpos", oneshotgetwindowpos); - _rb_define_module_function(module, "setwinpos", oneshotmovewindow); + _rb_define_module_function(module, "setwinpos", oneshotSetWindowPos); + _rb_define_module_function(module, "getwinpos", oneshotGetWindowPos); }