hardcoded __fontsetting

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7361 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2013-03-17 17:21:04 +00:00
parent 9cb0c9c46b
commit a80f9c88e7
3 changed files with 9 additions and 4 deletions
+9
View File
@@ -10,6 +10,7 @@ static font *fontdef = NULL;
font *curfont = NULL;
VARP(allowblinkingtext, 0, 0, 1); // if you're so inclined
VARP(__fontsetting, 0, 0, 2);
void newfont(char *name, char *tex, int *defaultw, int *defaulth, int *offsetx, int *offsety, int *offsetw, int *offseth)
{
@@ -68,6 +69,14 @@ bool setfont(const char *name)
{
font *f = fonts.access(name);
if(!f) return false;
int v = -1;
if(strcmp(name, "default")==0)
v = 0;
else if(strcmp(name, "serif")==0)
v = 1;
else if(strcmp(name, "mono")==0)
v = 2;
if(v!=-1) __fontsetting = v;
curfont = f;
return true;
}