diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-07-04 23:00:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-07-04 23:00:56 +0400 |
commit | 107b78a3d2b1a37f91b1e46511a3ea29f7f5cbbf (patch) | |
tree | fbd691e8bb0b3fc899fa88354f1ce7bd3db70a02 /source/blender/src/interface_draw.c | |
parent | 733b4c935139577444d06d9f99a560107b4c587e (diff) |
Made some python game engine funcs use NOARGS, getAxisVec was using wrong multiplication order.
Use BUT_TOGDUAL for controllers init states so you can see what the init state is for any controller without using the button to check.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index 83f1221b1fb..e7041e60003 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -180,8 +180,12 @@ static void ui_draw_icon(uiBut *but, BIFIconID icon, int blend) height= ICON_HEIGHT; if(but->flag & UI_ICON_LEFT) { - if (but->type==BUT_TOGDUAL && but->drawstr[0]) { - xs= but->x1-1.0; + if (but->type==BUT_TOGDUAL) { + if (but->drawstr[0]) { + xs= but->x1-1.0; + } else { + xs= (but->x1+but->x2- height)/2.0; + } } else if (but->type==BUTM ) { xs= but->x1+1.0; |