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); qboolean VID_Is8bit(void);
void VID_SetCaption(char *text);
// used to set window caption
#endif // _VID_H #endif // _VID_H

View file

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

View file

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