Make GetMainWindowHandle() a globally exported function as it is used e.g.

in clip_windows.cpp & video_sdl.cpp
This commit is contained in:
gbeauche 2006-05-02 19:34:04 +00:00
parent e5051464bf
commit 22110cb4f3

View File

@ -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