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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-30 19:16:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-30 19:16:08 +0400
commit3de85a87973ea9b8a5371cc025b8cb87fcbcde9a (patch)
tree8088d3ae6b47f6798ab28064dfafe541ed5988b7 /source/blender/editors/interface/interface_regions.c
parent82d6b176620c3d34e16bb8b0b10e9465898bd080 (diff)
style cleanup: casts, some casts had odd formatting, but very few. Style checker script detects this now so easy to detect this if new code is added that doesnt follow blenders style.
Diffstat (limited to 'source/blender/editors/interface/interface_regions.c')
-rw-r--r--source/blender/editors/interface/interface_regions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c
index a1ad7d6aaa7..329e1aabe67 100644
--- a/source/blender/editors/interface/interface_regions.c
+++ b/source/blender/editors/interface/interface_regions.c
@@ -651,10 +651,10 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
ofsx = 0; //(but->block->panel) ? but->block->panel->ofsx : 0;
ofsy = 0; //(but->block->panel) ? but->block->panel->ofsy : 0;
- rect_fl.xmin = (but->rect.xmin + but->rect.xmax) * 0.5f + ofsx - (TIP_BORDER_X );
- rect_fl.xmax = rect_fl.xmin + fontw + (TIP_BORDER_X );
- rect_fl.ymax = but->rect.ymin + ofsy - (TIP_BORDER_Y );
- rect_fl.ymin = rect_fl.ymax - fonth - (TIP_BORDER_Y );
+ rect_fl.xmin = (but->rect.xmin + but->rect.xmax) * 0.5f + ofsx - TIP_BORDER_X;
+ rect_fl.xmax = rect_fl.xmin + fontw + TIP_BORDER_X;
+ rect_fl.ymax = but->rect.ymin + ofsy - TIP_BORDER_Y;
+ rect_fl.ymin = rect_fl.ymax - fonth - TIP_BORDER_Y;
#undef TIP_MARGIN_Y
#undef TIP_BORDER_X