Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Haarsma <phaseIV@zonnet.nl>2005-01-19 16:53:43 +0300
committerRob Haarsma <phaseIV@zonnet.nl>2005-01-19 16:53:43 +0300
commit9fddd2bdec4f879a44304118e2f44929c2755483 (patch)
treec21b1edc62e879a28d8d5ded054a00a899e4dbc3 /source/blender/src/header_info.c
parent731c69d6ed04628d93ae313397cb5c8f85078ea0 (diff)
Added experimental option to use GL textured interface fonts.
Set preferred method in userprefs->language & font. Kinda requested by Kaito, i'm sure he regrets after seeing my code changes. This commit includes a patch provided by Jacques Baurain, which seemed nescessary to handle font sizing properly. Thank you !
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index 5ef7fc7a2dd..f1ec2bbe27a 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -898,6 +898,7 @@ static void do_info_filemenu(void *arg, int event)
BKE_reset_undo();
BKE_write_undo("original"); /* save current state */
+ refresh_interface_font();
}
break;
case 31: /* save default settings */
@@ -1820,11 +1821,13 @@ static void info_text(int x, int y)
glColor3ub(0, 0, 0);
glRasterPos2i(x, y);
+ BIF_RasterPos(x, y);
BIF_DrawString(G.font, headerstr, (U.transopts & USER_TR_MENUS));
hsize= BIF_GetStringWidth(G.font, headerstr, (U.transopts & USER_TR_BUTTONS));
glRasterPos2i(x+hsize+10, y);
+ BIF_RasterPos(x+hsize+10, y);
BIF_DrawString(G.font, infostr, (U.transopts & USER_TR_MENUS));
}