New AA font drawing (using texture) didn't get initialized on startup,
only when button was pressed. Confusing code... we need to remove all
#ifdefs here once.
This commit is contained in:
Ton Roosendaal
2005-05-28 13:22:09 +00:00
parent eeefc10bf5
commit ad9ee622e8
2 changed files with 6 additions and 5 deletions

View File

@@ -1613,11 +1613,6 @@ void do_global_buttons(unsigned short event)
break;
case B_USETEXTUREFONT: /* is button from space.c *info* */
if(U.transopts & USER_USETEXTUREFONT)
FTF_SetMode(FTF_TEXTUREFONT);
else
FTF_SetMode(FTF_PIXMAPFONT);
refresh_interface_font();
allqueue(REDRAWALL, 0);
break;

View File

@@ -239,6 +239,11 @@ void start_interface_font(void)
{
int result = 0;
if(U.transopts & USER_USETEXTUREFONT)
FTF_SetMode(FTF_TEXTUREFONT);
else
FTF_SetMode(FTF_PIXMAPFONT);
if(U.fontsize && U.fontname[0] ) { // we have saved user settings + fontpath
// try loading font from U.fontname = full path to font in usersettings
@@ -257,6 +262,7 @@ void start_interface_font(void)
}
if(result) {
lang_setlanguage();
G.ui_international = TRUE;