Propagate gr_init argument

This commit is contained in:
Kp 2015-05-14 02:23:13 +00:00
parent 739879d701
commit 2d9af1e348
4 changed files with 6 additions and 6 deletions

View file

@ -192,7 +192,7 @@ public:
}
};
int gr_init(int mode);
int gr_init();
int gr_list_modes( array<uint32_t, 50> &gsmodes );
int gr_set_mode(u_int32_t mode);

View file

@ -726,7 +726,7 @@ void gr_set_attributes(void)
gr_remap_mono_fonts();
}
int gr_init(int mode)
int gr_init()
{
int retcode;
@ -768,7 +768,7 @@ int gr_init(int mode)
grd_curscreen->sc_canvas.cv_bitmap.bm_data = NULL;
// Set the mode.
if ((retcode=gr_set_mode(mode)))
if ((retcode=gr_set_mode(0)))
return retcode;
grd_curscreen->sc_canvas.cv_color = 0;

View file

@ -158,7 +158,7 @@ void gr_set_attributes(void)
{
}
int gr_init(int mode)
int gr_init()
{
int retcode;
@ -186,7 +186,7 @@ int gr_init(int mode)
sdl_video_flags|=SDL_ASYNCBLIT;
// Set the mode.
if ((retcode=gr_set_mode(mode)))
if ((retcode=gr_set_mode(0)))
return retcode;
grd_curscreen->sc_canvas.cv_color = 0;

View file

@ -61,7 +61,7 @@ void arch_init(void)
if (!GameArg.CtlNoJoystick)
joy_init();
if ((t = gr_init(0)) != 0)
if ((t = gr_init()) != 0)
Error(TXT_CANT_INIT_GFX,t);
atexit(arch_close);