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:
authorTon Roosendaal <ton@blender.org>2005-05-28 20:11:11 +0400
committerTon Roosendaal <ton@blender.org>2005-05-28 20:11:11 +0400
commit8dfc6a506c3294e97164d18fc746ea448abf2540 (patch)
tree99c2c61265965fcaa0b577fc158610beede95441
parentad9ee622e8d0db6cdd0c91cfa1679193140e746c (diff)
For texture fonts, the rasterpos has to be delivered as BIF_RasterPos().
This smells to me like temporal code... will study it. For now this commit fixes error in header draw of fileselect.
-rw-r--r--source/blender/src/header_filesel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c
index 5310683b1e1..60e81d7e425 100644
--- a/source/blender/src/header_filesel.c
+++ b/source/blender/src/header_filesel.c
@@ -156,9 +156,10 @@ void file_buttons(void)
sprintf(naam, "Free: %.3f MB Files: (%d) %d (%.3f) %.3f MB", df, selfile,totfile, sellen, totlen);
cpack(0x0);
- glRasterPos2i(xco, 5);
-
- BIF_DrawString(uiBlockGetCurFont(block), naam, 0);
+ glRasterPos2f((float)xco, 5.0);
+ BIF_RasterPos((float)xco, 5.0);
+
+ BIF_DrawString(G.font, naam, 0);
}
/* always do as last */
curarea->headbutlen= xco+2*XIC;