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:
authorMatt Ebb <matt@mke3.net>2003-10-18 16:02:03 +0400
committerMatt Ebb <matt@mke3.net>2003-10-18 16:02:03 +0400
commitb6d30dddd728cc38a72090686918e682d040b1c8 (patch)
tree2f45a595631ea911664f906b74edfb161d28859f /source/blender/src/interface_panel.c
parent43243009b7701d4e20d9af78b2bd412b1d6cb21e (diff)
A few small tweaks to the panel drawing
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index 0303ad745ac..32fd2349ed2 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -763,8 +763,8 @@ static void ui_draw_panel_header(uiBlock *block)
*/
BIF_ThemeColor(curarea, TH_TEXT_HI);
- glRasterPos2f(16+block->minx+pnl_icons, block->maxy+5);
- BIF_DrawString(block->curfont, block->panel->panelname, (U.transopts & TR_BUTTONS), 0);
+ glRasterPos2f(4+block->minx+pnl_icons, block->maxy+5);
+ BIF_DrawString(block->curfont, block->panel->panelname, (U.transopts & TR_BUTTONS), 1);
return;
}
@@ -829,11 +829,11 @@ void ui_draw_panel(uiBlock *block)
uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 10);
// title
- ofsx= 2*PNL_ICON;
+ ofsx= PNL_ICON+8;
if(panel->control & UI_PNL_CLOSE) ofsx+= PNL_ICON;
BIF_ThemeColor(curarea, TH_TEXT_HI);
- glRasterPos2f(block->minx+40, block->maxy+5);
- BIF_DrawString(block->curfont, panel->panelname, (U.transopts & TR_BUTTONS), 0);
+ glRasterPos2f(4+block->minx+ofsx, block->maxy+5);
+ BIF_DrawString(block->curfont, panel->panelname, (U.transopts & TR_BUTTONS), 1);
// border
if(panel->flag & PNL_SELECT) {
@@ -863,7 +863,7 @@ void ui_draw_panel(uiBlock *block)
str[0]= panel->panelname[a];
if( isupper(str[0]) ) {
glRasterPos2f(block->minx+5, block->maxy-ofs);
- BIF_DrawString(block->curfont, str, 0, 0);
+ BIF_DrawString(block->curfont, str, 0, 1);
ofs+= 15;
}
}