mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
More cleanup, now working on the rendering line as a whole.
Con_SafePrintf is no longer needed, as Con_Printf is safe.
This commit is contained in:
parent
f85c3ac42f
commit
01a5c65e52
16 changed files with 61 additions and 267 deletions
|
@ -964,62 +964,9 @@ void SCR_DrawNotifyString (void)
|
|||
} while (1);
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
SCR_ModalMessage
|
||||
|
||||
Displays a text string in the center of the screen and waits for a Y or N
|
||||
keypress.
|
||||
==================
|
||||
*/
|
||||
int SCR_ModalMessage (char *text)
|
||||
{
|
||||
scr_notifystring = text;
|
||||
|
||||
// draw a fresh screen
|
||||
scr_fullupdate = 0;
|
||||
scr_drawdialog = true;
|
||||
SCR_UpdateScreen ();
|
||||
scr_drawdialog = false;
|
||||
|
||||
S_ClearBuffer (); // so dma doesn't loop current sound
|
||||
|
||||
do
|
||||
{
|
||||
key_count = -1; // wait for a key down and up
|
||||
IN_SendKeyEvents ();
|
||||
} while (key_lastpress != 'y' && key_lastpress != 'n' && key_lastpress != K_ESCAPE);
|
||||
|
||||
scr_fullupdate = 0;
|
||||
SCR_UpdateScreen ();
|
||||
|
||||
return key_lastpress == 'y';
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
|
||||
/*
|
||||
===============
|
||||
SCR_BringDownConsole
|
||||
|
||||
Brings the console down and fades the palettes back to normal
|
||||
================
|
||||
*/
|
||||
void SCR_BringDownConsole (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
scr_centertime_off = 0;
|
||||
|
||||
for (i=0 ; i<20 && scr_conlines != scr_con_current ; i++)
|
||||
SCR_UpdateScreen ();
|
||||
|
||||
cl.cshifts[0].percent = 0; // no area contents palette on next frame
|
||||
VID_SetPalette (host_basepal);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
==================
|
||||
SCR_UpdateScreen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue