Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp
- index 5cb518e..bebcf59 100644
- --- a/binding-mri/binding-mri.cpp
- +++ b/binding-mri/binding-mri.cpp
- @@ -75,6 +75,18 @@ void graphicsBindingInit();
- void fileIntBindingInit();
- +RB_METHOD(mkxpSetWindowSize)
- +{
- + RB_UNUSED_PARAM;
- +
- + int w, h;
- + rb_get_args(argc, argv, "ii", &w, &h RB_ARG_END);
- +
- + SDL_SetWindowSize(shState->sdlWindow(), w, h);
- +
- + return Qnil;
- +}
- +
- RB_METHOD(mriPrint);
- RB_METHOD(mriP);
- RB_METHOD(mkxpDataDirectory);
- @@ -145,6 +157,8 @@ static void mriBindingInit()
- _rb_define_module_function(mod, "puts", mkxpPuts);
- _rb_define_module_function(mod, "raw_key_states", mkxpRawKeyStates);
- + _rb_define_module_function(mod, "set_window_size", mkxpSetWindowSize);
- +
- rb_gv_set("MKXP", Qtrue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement