Bug fix #2636
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user