improved font handling

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5189 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-06-12 17:02:21 +00:00
parent 639f755ce2
commit 441eccff54
+2 -2
View File
@@ -1166,7 +1166,7 @@ void gmenu::init()
void gmenu::render()
{
if(usefont) setfont(usefont);
if(usefont) pushfont(usefont);
const char *t = title;
if(!t)
{
@@ -1231,7 +1231,7 @@ void gmenu::render()
else if(items.inrange(menusel) && items[menusel]->getdesc())
draw_text(items[menusel]->getdesc(), x, y);
}
if(usefont) setfont("default");
if(usefont) popfont(); // setfont("default");
}
void gmenu::renderbg(int x1, int y1, int x2, int y2, bool border)