Previous 199869 Revisions Next

r32089 Saturday 13th September, 2014 at 01:45:45 UTC by R. Belmont
SDL: fix Windows builds with SDL 1.2 (nw)
[src/osd/modules/sound]direct_sound.c

trunk/src/osd/modules/sound/direct_sound.c
r32088r32089
248248   #ifdef SDLMAME_WIN32
249249   SDL_SysWMinfo wminfo;
250250   SDL_VERSION(&wminfo.version);
251#if (SDLMAME_SDL2)
251252   SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo);
252253   result = IDirectSound_SetCooperativeLevel(dsound, wminfo.info.win.window, DSSCL_PRIORITY);
254#else
255   SDL_GetWMInfo(&wminfo);
256   result = IDirectSound_SetCooperativeLevel(dsound, wminfo.window, DSSCL_PRIORITY);
257#endif
253258   #else
254259   result = IDirectSound_SetCooperativeLevel(dsound, win_window_list->m_hwnd, DSSCL_PRIORITY);
255260   #endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team