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>2003-10-27 00:09:33 +0300
committerTon Roosendaal <ton@blender.org>2003-10-27 00:09:33 +0300
commit0311189fb8a8f6fc04ad92fafc355a81324aa7d8 (patch)
tree89007adda385dc4b9a8f940d45d27a9cb50795d9
parentf0f851d96379dac82d79a2e4ea343eadbbe8c3df (diff)
- fixed printing in headers (during modes) for when there is no header...
(uhh.. i mean, then it doesnt print!) - put back axis icon of 3d win to left/bottom corner. it was only moved for tests with an extended header to the left...
-rw-r--r--source/blender/src/drawview.c2
-rw-r--r--source/blender/src/editobject.c23
2 files changed, 15 insertions, 10 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index c56ce1348ae..26c73ed69bd 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -923,7 +923,7 @@ static void draw_view_icon(void)
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glRasterPos2f(curarea->winx-25.0, 5.0);
+ glRasterPos2f(5.0, 5.0);
BIF_draw_icon(icon);
glBlendFunc(GL_ONE, GL_ZERO);
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index e201724b303..7d6b4b9e401 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -3579,15 +3579,20 @@ void compatible_eul(float *eul, float *oldrot)
void headerprint(char *str)
{
- areawinset(curarea->headwin);
-
- headerbox(curarea);
- cpack(0x0);
- glRasterPos2i(20+curarea->headbutofs, 6);
- BMF_DrawString(G.font, str);
-
- curarea->head_swap= WIN_BACK_OK;
- areawinset(curarea->win);
+ if(curarea->headertype) {
+ areawinset(curarea->headwin);
+
+ headerbox(curarea);
+ cpack(0x0);
+ glRasterPos2i(20+curarea->headbutofs, 6);
+ BMF_DrawString(G.font, str);
+
+ curarea->head_swap= WIN_BACK_OK;
+ areawinset(curarea->win);
+ }
+ else {
+ // dunno... thats for later (ton)
+ }
}
void add_ipo_tob_poin(float *poin, float *old, float delta)