mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-16 16:41:30 +00:00
VID_SetCaption (title) support.
This commit is contained in:
parent
b183d0dcaf
commit
c29a59f262
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue