Converted the Userpreference buttons to zr's new ButBit calls.

Also added USER_*  to each define located in DNA_userdef.h.
This commit is contained in:
2004-01-13 14:50:45 +00:00
parent d74da9789a
commit 4a8f52f619
31 changed files with 239 additions and 242 deletions

View File

@@ -92,7 +92,7 @@ float BIF_GetStringWidth(BMF_Font* font, char *str, int translate)
#ifdef INTERNATIONAL
if(G.ui_international == TRUE)
if(U.transopts & TR_BUTTONS)
if(U.transopts & USER_TR_BUTTONS)
rt= FTF_GetStringWidth(str, FTF_USE_GETTEXT | FTF_INPUT_UTF8);
else
rt= FTF_GetStringWidth(str, FTF_NO_TRANSCONV | FTF_INPUT_UTF8);
@@ -245,7 +245,7 @@ void start_interface_font(void) {
} else {
printf("no font found for international support\n");
G.ui_international = FALSE;
U.transopts &= ~TR_ALL;
U.transopts &= ~USER_DOTRANSLATE;
U.fontsize = 0;
}