From 22110cb4f335b6b5cff3b00038324c37f3019462 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Tue, 2 May 2006 19:34:04 +0000 Subject: [PATCH] Make GetMainWindowHandle() a globally exported function as it is used e.g. in clip_windows.cpp & video_sdl.cpp --- SheepShaver/src/Windows/main_windows.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SheepShaver/src/Windows/main_windows.cpp b/SheepShaver/src/Windows/main_windows.cpp index 03e18c77..8b04b9b1 100755 --- a/SheepShaver/src/Windows/main_windows.cpp +++ b/SheepShaver/src/Windows/main_windows.cpp @@ -781,12 +781,10 @@ void SheepMem::Exit(void) #ifdef USE_SDL_VIDEO #include -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