summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl')
-rw-r--r--src/osd/sdl/drawsdl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/osd/sdl/drawsdl.c b/src/osd/sdl/drawsdl.c
index 3b32489a4ed..d4a867ea5e8 100644
--- a/src/osd/sdl/drawsdl.c
+++ b/src/osd/sdl/drawsdl.c
@@ -654,7 +654,10 @@ static int drawsdl_window_draw(sdl_window_info *window, UINT32 dc, int update)
UINT8 *surfptr;
INT32 pitch;
int bpp;
- Uint32 rmask, gmask, bmask, amask;
+ Uint32 rmask, gmask, bmask;
+#if (SDL_VERSION_ATLEAST(1,3,0))
+ Uint32 amask;
+#endif
INT32 vofs, hofs, blitwidth, blitheight, ch, cw;
if (video_config.novideo)
@@ -674,7 +677,7 @@ static int drawsdl_window_draw(sdl_window_info *window, UINT32 dc, int update)
rmask = sdl->sdlsurf->format->Rmask;
gmask = sdl->sdlsurf->format->Gmask;
bmask = sdl->sdlsurf->format->Bmask;
- amask = sdl->sdlsurf->format->Amask;
+// amask = sdl->sdlsurf->format->Amask;
if (window->blitwidth != sdl->old_blitwidth || window->blitheight != sdl->old_blitheight)
{