From aaa7b508d61afa523b43f1628329f99f63effa44 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Thu, 10 Feb 2011 17:52:39 +0000 Subject: [PATCH] sdl: fixed non-openGL compilation --- src/drivers/sdl/sdl-video.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/drivers/sdl/sdl-video.cpp b/src/drivers/sdl/sdl-video.cpp index 157f4d01..8ec17dfc 100644 --- a/src/drivers/sdl/sdl-video.cpp +++ b/src/drivers/sdl/sdl-video.cpp @@ -323,10 +323,14 @@ InitVideo(FCEUGI *gi) return -1; } - +#ifdef OPENGL s_screen = SDL_SetVideoMode(s_useOpenGL ? s_nativeWidth : xres, s_useOpenGL ? s_nativeHeight : yres, desbpp, flags); +#else + s_screen = SDL_SetVideoMode(xres, yres, desbpp, flags); +#endif + if(!s_screen) { FCEUD_PrintError(SDL_GetError()); return -1;