This commit is contained in:
jonathan de jong 2017-04-03 12:33:45 +02:00
commit 545f1f4d41

View file

@ -68,16 +68,16 @@ RB_METHOD(oneshotShake)
return Qnil; return Qnil;
} }
RB_METHOD(oneshotmovewindow) RB_METHOD(oneshotSetWindowPos)
{ {
RB_UNUSED_PARAM; RB_UNUSED_PARAM;
int x, y; 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); SDL_SetWindowPosition(shState->rtData().window, x, y);
return Qnil; return Qnil;
} }
RB_METHOD(oneshotgetwindowpos) RB_METHOD(oneshotGetWindowPos)
{ {
RB_UNUSED_PARAM; RB_UNUSED_PARAM;
int x, y; int x, y;
@ -112,6 +112,6 @@ void oneshotBindingInit()
_rb_define_module_function(module, "obscured_cleared?", oneshotObscuredCleared); _rb_define_module_function(module, "obscured_cleared?", oneshotObscuredCleared);
_rb_define_module_function(module, "allow_exit", oneshotAllowExit); _rb_define_module_function(module, "allow_exit", oneshotAllowExit);
_rb_define_module_function(module, "shake", oneshotShake); _rb_define_module_function(module, "shake", oneshotShake);
_rb_define_module_function(module, "getwinpos", oneshotgetwindowpos); _rb_define_module_function(module, "setwinpos", oneshotSetWindowPos);
_rb_define_module_function(module, "setwinpos", oneshotmovewindow); _rb_define_module_function(module, "getwinpos", oneshotGetWindowPos);
} }