sdl: fixed non-openGL compilation

This commit is contained in:
punkrockguy318 2011-02-10 17:52:39 +00:00
parent 52f0909b7b
commit aaa7b508d6
1 changed files with 5 additions and 1 deletions

View File

@ -323,10 +323,14 @@ InitVideo(FCEUGI *gi)
return -1; return -1;
} }
#ifdef OPENGL
s_screen = SDL_SetVideoMode(s_useOpenGL ? s_nativeWidth : xres, s_screen = SDL_SetVideoMode(s_useOpenGL ? s_nativeWidth : xres,
s_useOpenGL ? s_nativeHeight : yres, s_useOpenGL ? s_nativeHeight : yres,
desbpp, flags); desbpp, flags);
#else
s_screen = SDL_SetVideoMode(xres, yres, desbpp, flags);
#endif
if(!s_screen) { if(!s_screen) {
FCEUD_PrintError(SDL_GetError()); FCEUD_PrintError(SDL_GetError());
return -1; return -1;