git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5239
d7cf8633-e32d-0410-b094-
e92efae38249
if (!vid_opened && cls.state != ca_dedicated)
{
vid_opened = true;
if (!vid_opened && cls.state != ca_dedicated)
{
vid_opened = true;
CDAudio_Startup();
CL_InitTEnts(); // We must wait after sound startup to load tent sounds
MR_Init();
CDAudio_Startup();
CL_InitTEnts(); // We must wait after sound startup to load tent sounds
MR_Init();
- SCR_BeginLoadingPlaque();
void VID_Restart_f(void);
void VID_Restart_f(void);
-void VID_Open (void);
-void VID_Close (void);
Con_Printf("VID_Restart: changing from %s %dx%dx%dbpp, to %s %dx%dx%dbpp.\n",
current_vid_fullscreen ? "fullscreen" : "window", current_vid_width, current_vid_height, current_vid_bitsperpixel,
vid_fullscreen.integer ? "fullscreen" : "window", vid_width.integer, vid_height.integer, vid_bitsperpixel.integer);
Con_Printf("VID_Restart: changing from %s %dx%dx%dbpp, to %s %dx%dx%dbpp.\n",
current_vid_fullscreen ? "fullscreen" : "window", current_vid_width, current_vid_height, current_vid_bitsperpixel,
vid_fullscreen.integer ? "fullscreen" : "window", vid_width.integer, vid_height.integer, vid_bitsperpixel.integer);
+ VID_CloseSystems();
+ VID_Shutdown();
if (!VID_Mode(vid_fullscreen.integer, vid_width.integer, vid_height.integer, vid_bitsperpixel.integer))
{
Con_Print("Video mode change failed\n");
if (!VID_Mode(vid_fullscreen.integer, vid_width.integer, vid_height.integer, vid_bitsperpixel.integer))
{
Con_Print("Video mode change failed\n");
+// this is only called once by Host_StartVideo
+void VID_Start(void)
{
int i, width, height, success;
if (vid_commandlinecheck)
{
int i, width, height, success;
if (vid_commandlinecheck)
-void VID_Close(void)
-{
- VID_CloseSystems();
- VID_Shutdown();
-}
-