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>2019-03-13 08:35:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-13 08:41:35 +0300
commit1abd120e70faddadad1b20e2b24dd5e03229806e (patch)
treeee23344f49fa42cf69a22a70db71dc80542b12d7 /source/blender/editors/interface/interface_intern.h
parentf1a65f5750d6a7ce040325af49863a15427d39b1 (diff)
Cleanup: rename uiBlock.mx,my to bounds_offset
Use a name that related to block bounds calculation (mx/my are typically used for mouse x,y).
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r--source/blender/editors/interface/interface_intern.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index 82d6115fbbb..9d3f2088ab4 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -440,7 +440,8 @@ struct uiBlock {
/** for doing delayed */
eBlockBoundsCalc bounds_type;
- int mx, my;
+ /** Offset to use when calculating bounds (in pixels). */
+ int bounds_offset[2];
/** for doing delayed */
int bounds, minbounds;
@@ -613,7 +614,7 @@ struct uiPopupBlockHandle {
rctf prev_block_rect;
rctf prev_butrct;
short prev_dir1, prev_dir2;
- int prev_mx, prev_my;
+ int prev_bounds_offset[2];
/* Maximum estimated size to avoid having to reposition on refresh. */
float max_size_x, max_size_y;