increased code readability

This commit is contained in:
punkrockguy318 2008-08-12 05:58:24 +00:00
parent 89641c1b92
commit 30d847a9b3
1 changed files with 16 additions and 16 deletions

View File

@ -389,30 +389,30 @@ InitVideo(FCEUGI *gi)
// XXX soules - can't SDL do this for us? // XXX soules - can't SDL do this for us?
// if using more than 8bpp, initialize the conversion routines // if using more than 8bpp, initialize the conversion routines
if(s_curbpp > 8) if(s_curbpp > 8) {
#ifdef OPENGL InitBlitToHigh(s_curbpp >> 3,
if(!s_useOpenGL)
#endif
InitBlitToHigh(s_curbpp >> 3,
s_screen->format->Rmask, s_screen->format->Rmask,
s_screen->format->Gmask, s_screen->format->Gmask,
s_screen->format->Bmask, s_screen->format->Bmask,
s_eefx, s_sponge); s_eefx, s_sponge);
#ifdef OPENGL #ifdef OPENGL
if(s_useOpenGL) { if(s_useOpenGL)
int openGLip; {
g_config->getOption("SDL.OpenGLip", &openGLip); int openGLip;
g_config->getOption("SDL.OpenGLip", &openGLip);
if(!InitOpenGL(NOFFSET, 256 - (s_clipSides ? 8 : 0), if(!InitOpenGL(NOFFSET, 256 - (s_clipSides ? 8 : 0),
s_srendline, s_erendline + 1, s_srendline, s_erendline + 1,
s_exs, s_eys, s_eefx, s_exs, s_eys, s_eefx,
openGLip, xstretch, ystretch, s_screen)) { openGLip, xstretch, ystretch, s_screen))
FCEUD_PrintError("Error initializing OpenGL."); {
KillVideo(); FCEUD_PrintError("Error initializing OpenGL.");
return -1; KillVideo();
return -1;
}
} }
}
#endif #endif
}
return 0; return 0;
} }