From 77021e0abcffa7cb12b56ceedef8f5fd4addb445 Mon Sep 17 00:00:00 2001 From: jonathan de jong Date: Mon, 3 Apr 2017 11:51:07 +0200 Subject: [PATCH] **x.x** --- binding-mri/oneshot-binding.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/binding-mri/oneshot-binding.cpp b/binding-mri/oneshot-binding.cpp index 9864921..6c5fa6f 100644 --- a/binding-mri/oneshot-binding.cpp +++ b/binding-mri/oneshot-binding.cpp @@ -70,22 +70,22 @@ RB_METHOD(oneshotShake) RB_METHOD(oneshotmovewindow) { - RB_UNUSED_PARAM; - int x, y; - rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END); - SDL_SetWindowPosition(shState->rtData().window, x, y) - return Qnil + RB_UNUSED_PARAM; + int x, y; + rb_get_args(argc, argv, "ii", &x, &y, RB_ARG_END); + SDL_SetWindowPosition(shState->rtData().window, x, y); + return Qnil; } RB_METHOD(oneshotgetwindowpos) { - RB_UNUSED_PARAM; - int x, y; - SDL_GetWindowPosition(shState->rtData().window, &x, &y); - VALUE ary = rb_ary_new; - rb_ary_push(ary,x); - rb_ary_push(ary,y); - return ary + RB_UNUSED_PARAM; + int x, y; + SDL_GetWindowPosition(shState->rtData().window, &x, &y); + VALUE ary = rb_ary_new(); + rb_ary_push(ary,x); + rb_ary_push(ary,y); + return ary; } void oneshotBindingInit()