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>2004-07-23 23:24:07 +0400
committerTon Roosendaal <ton@blender.org>2004-07-23 23:24:07 +0400
commita856becb52a54dad3a2487e88d4163c6920d7ee9 (patch)
tree3a599538d1a73805a60ff5b771cfca6c0dc75df7 /source/blender/src/interface_panel.c
parent3ad0fce9004ca046939e79f185877adb4a9d1235 (diff)
Added a fix for calculating centring buttons in panel. It was off 8 pixels
(the safety).
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index dc061aed35e..298f59f8386 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -499,7 +499,7 @@ static void ui_scale_panel_block(uiBlock *block)
if( block->maxx-block->minx > block->panel->sizex - 2*PNL_SAFETY ) {
facx= (block->panel->sizex - (2*PNL_SAFETY))/( block->maxx-block->minx );
}
- else centrex= (block->panel->sizex-( block->maxx-block->minx ) - PNL_SAFETY)/2;
+ else centrex= (block->panel->sizex-( block->maxx-block->minx ) - 2*PNL_SAFETY)/2;
// tabsy= PNL_HEADER*panel_has_tabs(block->panel);
if( (block->maxy-block->miny) > block->panel->sizey - 2*PNL_SAFETY - tabsy) {