mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 11:33:48 +00:00
Merge pull request #1394 from Azaezel/BarrierBreak
release the mouse from window constraints when poping up a window prompt
This commit is contained in:
commit
ac6bca6f13
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,10 @@ S32 Platform::messageBox(const UTF8 *title, const UTF8 *message, MBButtons butto
|
|||
initMsgBox_ButtonData();
|
||||
|
||||
SDL_Window *window = WindowManager->getFirstWindow() ? SDL_GetWindowFromID( WindowManager->getFirstWindow()->getWindowId() ) : NULL;
|
||||
|
||||
if (window) //release the mouse from the window constaints
|
||||
SDL_SetWindowGrab(window, SDL_FALSE);
|
||||
|
||||
if(buttons == MBOk)
|
||||
return SDL_ShowSimpleMessageBox(0, title, message, window );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue