mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-25 02:29:49 +00:00
Make GetMainWindowHandle() a globally exported function as it is used e.g.
in clip_windows.cpp & video_sdl.cpp
This commit is contained in:
parent
e5051464bf
commit
22110cb4f3
@ -781,12 +781,10 @@ void SheepMem::Exit(void)
|
||||
|
||||
#ifdef USE_SDL_VIDEO
|
||||
#include <SDL_syswm.h>
|
||||
static HWND GetMainWindowHandle(void)
|
||||
HWND GetMainWindowHandle(void)
|
||||
{
|
||||
SDL_SysWMinfo wmInfo;
|
||||
wmInfo.version.major = SDL_MAJOR_VERSION;
|
||||
wmInfo.version.minor = SDL_MINOR_VERSION;
|
||||
wmInfo.version.patch = SDL_PATCHLEVEL;
|
||||
SDL_VERSION(&wmInfo.version);
|
||||
return SDL_GetWMInfo(&wmInfo) ? wmInfo.window : NULL;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user