diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-23 15:00:51 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-23 15:00:51 +0400 |
commit | 5b018e669b357fd650d76daf120e0baea069098b (patch) | |
tree | 6b10d931aca65c4d14c8b1870b67e69d07fe3cb2 /source/blender/src/interface_panel.c | |
parent | f2637d90b911a3d7a691859d491f14c07aa63d72 (diff) |
- fixed drawing of headers... they align now exactly with the 1 pixel
black edge between 'area windows'.
the new ortho matrix seems to work for me... :)
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r-- | source/blender/src/interface_panel.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c index bdebb2f524f..cd6c954c977 100644 --- a/source/blender/src/interface_panel.c +++ b/source/blender/src/interface_panel.c @@ -238,16 +238,23 @@ void uiRoundBoxEmboss(float minx, float miny, float maxx, float maxy, float rad) glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); + /* top shade */ gl_round_box_topshade(minx+1, miny+1, maxx-1, maxy-1, rad); + /* total outline */ if(roundboxtype & UI_RB_ALPHA) glColor4ub(0,0,0, 128); else glColor4ub(0,0,0, 255); glBegin(GL_LINE_LOOP); gl_round_box(minx, miny, maxx, maxy, rad); glEnd(); - glDisable( GL_BLEND ); glDisable( GL_LINE_SMOOTH ); + /* bottom shade for header down */ + if((roundboxtype & 12)==12) { + glColor4ub(0,0,0, 80); + fdrawline(minx+rad-1.0, miny+1.0, maxx-rad+1.0, miny+1.0); + } + glDisable( GL_BLEND ); } |