diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-08-15 04:53:51 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-08-15 04:53:51 +0400 |
commit | 74623f33aa2e12da31b53423fc226ebf9e937df4 (patch) | |
tree | 2639898f43f39de8be4b4e3526201557dc0e3b4c /source/blender/src/resources.c | |
parent | bb377c72cdb850a5fb68aab436c6d8b6d95a920b (diff) |
- get rid of unused object_deform_curve
- some tweaks to modifier UI thanks to Bart (aligning buttons)
Diffstat (limited to 'source/blender/src/resources.c')
-rw-r--r-- | source/blender/src/resources.c | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/source/blender/src/resources.c b/source/blender/src/resources.c index 332bac1cc6d..b9c47d99775 100644 --- a/source/blender/src/resources.c +++ b/source/blender/src/resources.c @@ -531,40 +531,36 @@ static void vicon_disclosure_tri_down_draw(int x, int y, int w, int h, float alp static void vicon_move_up_draw(int x, int y, int w, int h, float alpha) { - int i, d=-2, pad=3; + int d=-2, pad=3; glEnable(GL_LINE_SMOOTH); - glLineWidth(2); + glLineWidth(1); glColor3f(0.0, 0.0, 0.0); - for (i=0; i<2; i++) { - int offs = (i?2:-2) + 1; - - glBegin(GL_LINE_STRIP); - glVertex2i(x+pad, y+h/2+d + offs); - glVertex2i(x+w/2, y+h/2-d + offs); - glVertex2i(x+w-pad, y+h/2+d + offs); - glEnd(); - } + + glBegin(GL_LINE_STRIP); + glVertex2i(x+w/2-d*2, y+h/2+d); + glVertex2i(x+w/2, y+h/2-d + 1); + glVertex2i(x+w/2+d*2, y+h/2+d); + glEnd(); + glLineWidth(1.0); glDisable(GL_LINE_SMOOTH); } static void vicon_move_down_draw(int x, int y, int w, int h, float alpha) { - int i, d=2, pad=3; + int d=2, pad=3; glEnable(GL_LINE_SMOOTH); - glLineWidth(2); + glLineWidth(1); glColor3f(0.0, 0.0, 0.0); - for (i=0; i<2; i++) { - int offs = (i?2:-2) - 1; - - glBegin(GL_LINE_STRIP); - glVertex2i(x+pad, y+h/2+d + offs); - glVertex2i(x+w/2, y+h/2-d + offs); - glVertex2i(x+w-pad, y+h/2+d + offs); - glEnd(); - } + + glBegin(GL_LINE_STRIP); + glVertex2i(x+w/2-d*2, y+h/2+d); + glVertex2i(x+w/2, y+h/2-d - 1); + glVertex2i(x+w/2+d*2, y+h/2+d); + glEnd(); + glLineWidth(1.0); glDisable(GL_LINE_SMOOTH); } |