mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Revert new feature additions
This reverts commit 61ce6cd8ea.
# Conflicts:
# binding-mri/oneshot-binding.cpp
This commit is contained in:
parent
851ee5ae15
commit
0fe0b7d755
1 changed files with 0 additions and 20 deletions
|
|
@ -88,26 +88,6 @@ RB_METHOD(oneshotShake)
|
|||
return Qnil;
|
||||
}
|
||||
|
||||
RB_METHOD(oneshotSetWindowPos)
|
||||
{
|
||||
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, rb_int_new(x));
|
||||
rb_ary_push(ary, rb_int_new(y));
|
||||
return ary;
|
||||
}
|
||||
|
||||
void oneshotBindingInit()
|
||||
{
|
||||
VALUE module = rb_define_module("Oneshot");
|
||||
|
|
|
|||
Loading…
Reference in a new issue