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