mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
New Cvar function: Cvar_SetFlags. Yes, it's there for completeness.
Some minor changes to DGA code I couldn't be bothered to back out before I committed. They don't hurt anything, but they don't really improve matters much either. The mouse cursor still doesn't get warped off the screen, but it's no longer bright blue - now it's black and white like normal. I'm rewriting the damned DGA code from scratch to Get It Right this time.
This commit is contained in:
parent
30d1dc1c87
commit
ef1c6be3df
4 changed files with 62 additions and 29 deletions
|
@ -200,12 +200,12 @@ void Cvar_Set (cvar_t *var, char *value)
|
|||
|
||||
Cvar_Info(var);
|
||||
}
|
||||
/*
|
||||
|
||||
|
||||
/*
|
||||
Cvar_SetROM
|
||||
|
||||
doesn't check for CVAR_ROM flag
|
||||
|
||||
*/
|
||||
void Cvar_SetROM (cvar_t *var, char *value)
|
||||
{
|
||||
|
@ -464,3 +464,18 @@ cvar_t *Cvar_Get(char *name, char *string, int cvarflags, char *description)
|
|||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
/*
|
||||
Cvar_SetFlags
|
||||
|
||||
sets a Cvar's flags simply and easily
|
||||
*/
|
||||
void
|
||||
Cvar_SetFlags (cvar_t *var, int cvarflags);
|
||||
{
|
||||
if (var == NULL)
|
||||
return;
|
||||
|
||||
var->flags = cvarflags;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue