Inline call to gr_set_mode(0)

This commit is contained in:
Kp 2015-05-14 02:23:13 +00:00
parent 2d9af1e348
commit e592f3a0bb
2 changed files with 0 additions and 10 deletions

View file

@ -728,8 +728,6 @@ void gr_set_attributes(void)
int gr_init()
{
int retcode;
// Only do this function once!
if (gr_installed==1)
return -1;
@ -768,9 +766,6 @@ int gr_init()
grd_curscreen->sc_canvas.cv_bitmap.bm_data = NULL;
// Set the mode.
if ((retcode=gr_set_mode(0)))
return retcode;
grd_curscreen->sc_canvas.cv_color = 0;
grd_curscreen->sc_canvas.cv_fade_level = GR_FADE_OFF;
grd_curscreen->sc_canvas.cv_blend_func = GR_BLEND_NORMAL;

View file

@ -160,8 +160,6 @@ void gr_set_attributes(void)
int gr_init()
{
int retcode;
// Only do this function once!
if (gr_installed==1)
return -1;
@ -186,9 +184,6 @@ int gr_init()
sdl_video_flags|=SDL_ASYNCBLIT;
// Set the mode.
if ((retcode=gr_set_mode(0)))
return retcode;
grd_curscreen->sc_canvas.cv_color = 0;
grd_curscreen->sc_canvas.cv_fade_level = GR_FADE_OFF;
grd_curscreen->sc_canvas.cv_blend_func = GR_BLEND_NORMAL;