mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-04 04:48:05 +03:00
Fix a bug of BGM loop in Windows
The info structure must be initialized with the SDL version before calling SDL_GetWindowWMInfo.
This commit is contained in:
@@ -165,6 +165,7 @@ MAKO::MAKO(NACT* parent, const char* playlist) :
|
||||
}
|
||||
|
||||
SDL_SysWMinfo info;
|
||||
SDL_VERSION(&info.version);
|
||||
if (!SDL_GetWindowWMInfo(g_window, &info)) {
|
||||
WARNING("SDL_GetWindowWMInfo failed: %s", SDL_GetError());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user