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>2009-04-12 17:40:29 +0400
committerTon Roosendaal <ton@blender.org>2009-04-12 17:40:29 +0400
commit5cb480cef44bc4ec3d191f114622af04bba6285d (patch)
tree788654e26024cfacb0431314d716362bd317f4f1 /source/blender/editors/interface/interface.c
parent1fec143198d34dd50a55ef313f2daf55a75cd414 (diff)
2.5
Various ui fixes: - panel drawing now correctly follows scaled view - made imagewindow buttons using TH_PANEL color back (was too dark) - click on open/close panel was wrong - menu items disabling now draws correct - curve/hsv widgets didn't draw on right locations - numsliders have nicer interior slider decoration - new type TOGBUT to enforce old style toggle button (not new type 'option button' with checkmark - (temp) disabled live updating while using Curve widget, was too slow to be fun. Needs general solution :)
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index a41fa2d5cb5..3ce658a174f 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -710,7 +710,7 @@ void uiDrawBlock(const bContext *C, uiBlock *block)
glPushMatrix();
glLoadIdentity();
- wmOrtho2(0.0f, ar->winx, 0.0f, ar->winy);
+ wmOrtho2(-0.01f, ar->winx-0.01f, -0.01f, ar->winy-0.01f);
/* back */
if(block->flag & UI_BLOCK_LOOP)
@@ -760,6 +760,7 @@ static void ui_is_but_sel(uiBut *but)
case KEYEVT:
if (value==-1) push= 1;
break;
+ case TOGBUT:
case TOG:
case TOGR:
case TOG3: