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-08-18 20:53:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-18 20:53:46 +0400
commit63f143a3ccf1a411951730f85efbdd84d2076a12 (patch)
tree6d5fd69566525ab88a685ecf4e82dcdb473e9f11 /source/blender/editors/interface/interface_ops.c
parent27b4b45543c0f7690a1978a60591a0b5c0f1adbb (diff)
use rctf struct for UI buttons and blocks, easier to read and means we can use BLI_rctf functions.
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r--source/blender/editors/interface/interface_ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index b3b48cb3a46..98df612a6af 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -729,10 +729,10 @@ static int ui_editsource_uibut_match(uiBut *but_a, uiBut *but_b)
/* this just needs to be a 'good-enough' comparison so we can know beyond
* reasonable doubt that these buttons are the same between redraws.
* if this fails it only means edit-source fails - campbell */
- if ((but_a->x1 == but_b->x1) &&
- (but_a->x2 == but_b->x2) &&
- (but_a->y1 == but_b->y1) &&
- (but_a->y2 == but_b->y2) &&
+ if ((but_a->rect.xmin == but_b->rect.xmin) &&
+ (but_a->rect.xmax == but_b->rect.xmax) &&
+ (but_a->rect.ymin == but_b->rect.ymin) &&
+ (but_a->rect.ymax == but_b->rect.ymax) &&
(but_a->type == but_b->type) &&
(but_a->rnaprop == but_b->rnaprop) &&
(but_a->optype == but_b->optype) &&