mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
**x.x**
This commit is contained in:
parent
ad92ab9b21
commit
77021e0abc
1 changed files with 12 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue