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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-02 23:32:48 +0400
committerTon Roosendaal <ton@blender.org>2006-07-02 23:32:48 +0400
commitcbae5f962830faca2144a8ce90007468c124209c (patch)
tree91b9eea89ccfac6711da8748c8a61df93172382a /source
parent851974a17bd55b5a716c8740107dcb0f94afe5c3 (diff)
Beauty fix: if you use AA fonts in UI, and set 'texture draw' option,
the info text in file window sometimes displayed in wrong scale. Moved order of drawing to ensure this cannot happen.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/header_filesel.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c
index 62725f33f8a..74886c8495c 100644
--- a/source/blender/src/header_filesel.c
+++ b/source/blender/src/header_filesel.c
@@ -88,7 +88,7 @@ void file_buttons(void)
SpaceFile *sfile;
uiBlock *block;
float df, totlen, sellen;
- short xco;
+ short xco, xcotitle;
int totfile, selfile;
char naam[256];
@@ -123,9 +123,8 @@ void file_buttons(void)
cpack(0x0);
xco+=XIC+10;
- glRasterPos2f((float)xco, 5.0);
- BIF_RasterPos((float)xco, 5.0); // stupid texture fonts
- BIF_DrawString(uiBlockGetCurFont(block), sfile->title, (U.transopts & USER_TR_BUTTONS));
+
+ xcotitle= xco;
xco+= BIF_GetStringWidth(G.font, sfile->title, (U.transopts & USER_TR_BUTTONS));
uiBlockBeginAlign(block);
@@ -157,6 +156,12 @@ void file_buttons(void)
xco+= 100; // scroll
}
+ uiDrawBlock(block);
+
+ glRasterPos2f((float)xcotitle, 5.0);
+ BIF_RasterPos((float)xcotitle, 5.0); // stupid texture fonts
+ BIF_DrawString(uiBlockGetCurFont(block), sfile->title, (U.transopts & USER_TR_BUTTONS));
+
if(sfile->type==FILE_UNIX) {
df= BLI_diskfree(sfile->dir)/(1048576.0);
@@ -170,8 +175,7 @@ void file_buttons(void)
BIF_DrawString(G.font, naam, 0);
}
+
/* always do as last */
curarea->headbutlen= xco+2*XIC;
-
- uiDrawBlock(block);
}