mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
Merge remote-tracking branch 'corristo/master'
This commit is contained in:
commit
b8cd3f3915
3
extern/sdl4ogre/osx_utils.mm
vendored
3
extern/sdl4ogre/osx_utils.mm
vendored
@ -1,13 +1,14 @@
|
||||
#include "osx_utils.h"
|
||||
|
||||
#import <AppKit/NSWindow.h>
|
||||
|
||||
|
||||
namespace SFO {
|
||||
|
||||
unsigned long WindowContentViewHandle(SDL_SysWMinfo &info)
|
||||
{
|
||||
NSWindow *window = info.info.cocoa.window;
|
||||
NSView *view = [window contentView];
|
||||
|
||||
return (unsigned long)view;
|
||||
}
|
||||
|
||||
|
1
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
1
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
@ -126,6 +126,7 @@ namespace SFO
|
||||
#endif
|
||||
if (mWindowListener)
|
||||
mWindowListener->windowResized(evt.window.data1, evt.window.data2);
|
||||
break;
|
||||
|
||||
case SDL_WINDOWEVENT_RESIZED:
|
||||
// TODO: Fix Ogre to handle this more consistently
|
||||
|
2
extern/sdl4ogre/sdlwindowhelper.cpp
vendored
2
extern/sdl4ogre/sdlwindowhelper.cpp
vendored
@ -21,7 +21,7 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
|
||||
struct SDL_SysWMinfo wmInfo;
|
||||
SDL_VERSION(&wmInfo.version);
|
||||
|
||||
if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == -1)
|
||||
if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == SDL_FALSE)
|
||||
throw std::runtime_error("Couldn't get WM Info!");
|
||||
|
||||
Ogre::String winHandle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user