diff --git a/binding-mri/graphics-binding.cpp b/binding-mri/graphics-binding.cpp index bcb44b6..87cb89c 100644 --- a/binding-mri/graphics-binding.cpp +++ b/binding-mri/graphics-binding.cpp @@ -209,15 +209,6 @@ RB_METHOD(graphicsResizeWindow) return Qnil; } -RB_METHOD(graphicsMaximizeWindow) -{ - RB_UNUSED_PARAM; - - shState->eThread().requestWindowMaximize(); - - return Qnil; -} - DEF_GRA_PROP_I(FrameRate) DEF_GRA_PROP_I(FrameCount) DEF_GRA_PROP_I(Brightness) @@ -277,5 +268,4 @@ void graphicsBindingInit() INIT_GRA_PROP_BIND( ShowCursor, "show_cursor" ); _rb_define_module_function(module, "resize_window", graphicsResizeWindow); - _rb_define_module_function(module, "maximize_window", graphicsMaximizeWindow); } diff --git a/src/eventthread.cpp b/src/eventthread.cpp index 8be64df..12d7406 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -40,12 +40,12 @@ #include -typedef void (ALC_APIENTRY *_LPALCDEVICEPAUSESOFT) (ALCdevice *device); -typedef void (ALC_APIENTRY *_LPALCDEVICERESUMESOFT) (ALCdevice *device); +typedef void (ALC_APIENTRY *LPALCDEVICEPAUSESOFT) (ALCdevice *device); +typedef void (ALC_APIENTRY *LPALCDEVICERESUMESOFT) (ALCdevice *device); #define AL_DEVICE_PAUSE_FUN \ - AL_FUN(DevicePause, _LPALCDEVICEPAUSESOFT) \ - AL_FUN(DeviceResume, _LPALCDEVICERESUMESOFT) + AL_FUN(DevicePause, LPALCDEVICEPAUSESOFT) \ + AL_FUN(DeviceResume, LPALCDEVICERESUMESOFT) struct ALCFunctions { @@ -80,7 +80,6 @@ enum { REQUEST_SETFULLSCREEN = 0, REQUEST_WINRESIZE, - REQUEST_WINMAXIMIZE, REQUEST_MESSAGEBOX, REQUEST_SETCURSORVISIBLE, @@ -460,10 +459,6 @@ void EventThread::process(RGSSThreadData &rtData) updateCursorState(cursorInWindow, gameScreen); break; - case REQUEST_WINMAXIMIZE : - SDL_MaximizeWindow(win); - break; - case UPDATE_FPS : if (rtData.config.printFPS) Debug() << "FPS:" << event.user.code; @@ -627,13 +622,6 @@ void EventThread::requestWindowResize(int width, int height, bool recenter) SDL_PushEvent(&event); } -void EventThread::requestWindowMaximize() -{ - SDL_Event event; - event.type = usrIdStart + REQUEST_WINMAXIMIZE; - SDL_PushEvent(&event); -} - void EventThread::requestShowCursor(bool mode) { SDL_Event event; diff --git a/src/eventthread.h b/src/eventthread.h index 2352f79..2ad7ec6 100644 --- a/src/eventthread.h +++ b/src/eventthread.h @@ -89,7 +89,6 @@ public: /* Called from RGSS thread */ void requestFullscreenMode(bool mode); void requestWindowResize(int width, int height, bool recenter = false); - void requestWindowMaximize(); void requestShowCursor(bool mode); void requestTerminate();