VID_SetCaption (title) support.

This commit is contained in:
Dabb 2000-07-14 16:10:26 +00:00
parent b183d0dcaf
commit c29a59f262
3 changed files with 9 additions and 9 deletions

View file

@ -98,4 +98,7 @@ void VID_UnlockBuffer (void);
qboolean VID_Is8bit(void);
void VID_SetCaption(char *text);
// used to set window caption
#endif // _VID_H

View file

@ -466,9 +466,7 @@ void CL_Disconnect (void)
connect_time = -1;
#ifdef _WIN32
SetWindowText (mainwindow, PROGRAM ": disconnected");
#endif
VID_SetCaption(PROGRAM ": disconnected");
// stop sounds (especially looping!)
S_StopAllSounds (true);

View file

@ -167,13 +167,12 @@ void CL_PredictMove (void)
// we can now render a frame
if (cls.state == ca_onserver)
{ // first update is the final signon stage
char text[1024];
cls.state = ca_active;
snprintf (text, sizeof(text), "%s: %s", PROGRAM, cls.servername);
#ifdef _WIN32
SetWindowText (mainwindow, text);
#endif
char text[1024];
snprintf (text, sizeof(text), "%s: %s", PROGRAM, cls.servername);
VID_SetCaption(text);
cls.state = ca_active;
}
if (cl_nopred->value)