diff options
author | Ton Roosendaal <ton@blender.org> | 2004-11-30 16:06:00 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-11-30 16:06:00 +0300 |
commit | d9e4a8580e20594b6555273383d7cecb6e6da40a (patch) | |
tree | 3c9ba1e49459ad774997cc830de98d6095c0c5f3 /source/blender/src/interface_draw.c | |
parent | 6d9c02be4cfd61b985af789e167f7fa78dbc0868 (diff) |
On report from IRC: expand/shrink selection (CTRL + numpad-plus/minus) did
not work with edge/face selection modes correctly yet.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index 220b11e2cee..6553a9c75cb 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1350,6 +1350,15 @@ static void ui_shadowbox(float minx, float miny, float maxx, float maxy, float s glShadeModel(GL_FLAT); } +void uiDrawBoxShadow(unsigned char alpha, float minx, float miny, float maxx, float maxy) +{ + /* accumulated outline boxes to make shade not linear, is more pleasant */ + ui_shadowbox(minx, miny, maxx, maxy, 6.0, (30*alpha)>>8); + ui_shadowbox(minx, miny, maxx, maxy, 4.0, (70*alpha)>>8); + ui_shadowbox(minx, miny, maxx, maxy, 2.0, (100*alpha)>>8); + +} + // background for pulldowns, pullups, and other drawing temporal menus.... // has to be made themable still (now only color) @@ -1374,6 +1383,8 @@ void uiDrawMenuBox(float minx, float miny, float maxx, float maxy, short flag) glDisable(GL_BLEND); } + + /* pulldown menu item */ static void ui_draw_pulldown_item(int type, int colorid, float asp, float x1, float y1, float x2, float y2, int flag) { |