mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +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);
|
qboolean VID_Is8bit(void);
|
||||||
|
|
||||||
|
void VID_SetCaption(char *text);
|
||||||
|
// used to set window caption
|
||||||
|
|
||||||
#endif // _VID_H
|
#endif // _VID_H
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue