From f56cc0e70653726ff85b1ff28a614f7200a67750 Mon Sep 17 00:00:00 2001 From: couriersud Date: Sun, 1 Feb 2015 13:34:02 +0100 Subject: [PATCH] Fix compile. (nw) --- src/osd/modules/sound/direct_sound.c | 2 +- src/osd/sdl/drawogl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/modules/sound/direct_sound.c b/src/osd/modules/sound/direct_sound.c index bd30d730ee7..6cc0afea40f 100644 --- a/src/osd/modules/sound/direct_sound.c +++ b/src/osd/modules/sound/direct_sound.c @@ -279,7 +279,7 @@ HRESULT sound_direct_sound::dsound_init() SDL_SysWMinfo wminfo; SDL_VERSION(&wminfo.version); #if (SDLMAME_SDL2) - SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo); + SDL_GetWindowWMInfo(sdl_window_list->m_sdl_window, &wminfo); result = IDirectSound_SetCooperativeLevel(dsound, wminfo.info.win.window, DSSCL_PRIORITY); #else SDL_GetWMInfo(&wminfo); diff --git a/src/osd/sdl/drawogl.c b/src/osd/sdl/drawogl.c index 61bf6ab867e..bfe383be56a 100644 --- a/src/osd/sdl/drawogl.c +++ b/src/osd/sdl/drawogl.c @@ -2462,7 +2462,7 @@ INLINE void copyline_yuy16_to_argb(UINT32 *dst, const UINT16 *src, int width, co int x; assert(xborderpix == 0 || xborderpix == 2); - assert(m_width % 2 == 0); + assert(width % 2 == 0); // palette (really RGB map) case if (palette != NULL)