trunk/src/osd/sdl/drawsdl.c
| r32071 | r32072 | |
| 409 | 409 | window->sdl_window = SDL_CreateWindow(window->title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, |
| 410 | 410 | width, height, sdl->extra_flags); |
| 411 | 411 | |
| 412 | #if SDLMAME_WIN32 |
| 413 | SDL_SysWMinfo wminfo; |
| 414 | SDL_VERSION(wminfo.version); |
| 415 | SDL_GetWindowWMInfo(window->sdl_window, &wminfo); |
| 416 | window->windows_hwnd = (void *)wminfo.win.info; |
| 417 | #endif |
| 418 | |
| 412 | 419 | if (window->fullscreen && video_config.switchres) |
| 413 | 420 | { |
| 414 | 421 | SDL_DisplayMode mode; |
trunk/src/osd/sdl/draw13.c
| r32071 | r32072 | |
| 554 | 554 | window->sdl_window = SDL_CreateWindow(window->title, SDL_WINDOWPOS_UNDEFINED_DISPLAY(window->monitor->handle), SDL_WINDOWPOS_UNDEFINED, |
| 555 | 555 | width, height, sdl->extra_flags); |
| 556 | 556 | |
| 557 | #if SDLMAME_WIN32 |
| 558 | SDL_SysWMinfo wminfo; |
| 559 | SDL_VERSION(wminfo.version); |
| 560 | SDL_GetWindowWMInfo(window->sdl_window, &wminfo); |
| 561 | window->windows_hwnd = (void *)wminfo.win.info; |
| 562 | #endif |
| 563 | |
| 557 | 564 | if (window->fullscreen && video_config.switchres) |
| 558 | 565 | { |
| 559 | 566 | SDL_DisplayMode mode; |
trunk/src/osd/modules/sound/direct_sound.c
| r32071 | r32072 | |
| 240 | 240 | |
| 241 | 241 | // set the cooperative level |
| 242 | 242 | #ifndef SDLMAME_WIN32 |
| 243 | result = IDirectSound_SetCooperativeLevel(dsound, (HWND *)sdl_window_list->windows_hwnd, DSSCL_PRIORITY); |
| 244 | #else |
| 243 | 245 | result = IDirectSound_SetCooperativeLevel(dsound, win_window_list->m_hwnd, DSSCL_PRIORITY); |
| 246 | #endif |
| 244 | 247 | if (result != DS_OK) |
| 245 | 248 | { |
| 246 | 249 | osd_printf_error("Error setting DirectSound cooperative level: %08x\n", (UINT32)result); |
| 247 | 250 | goto error; |
| 248 | 251 | } |
| 249 | | #endif |
| 250 | 252 | |
| 251 | 253 | // make a format description for what we want |
| 252 | 254 | stream_format.wBitsPerSample = 16; |
| r32071 | r32072 | |
| 260 | 262 | // compute the buffer size based on the output sample rate |
| 261 | 263 | int audio_latency; |
| 262 | 264 | #ifdef SDLMAME_WIN32 |
| 263 | | audio_latency = downcast<sdl_options &>(machine.options()).audio_latency(); |
| 265 | audio_latency = downcast<sdl_options &>(m_osd.machine().options()).audio_latency(); |
| 264 | 266 | #else |
| 265 | 267 | audio_latency = downcast<windows_options &>(m_osd.machine().options()).audio_latency(); |
| 266 | 268 | #endif |