diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-10-21 02:49:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-21 05:15:41 +0300 |
commit | 69102786047dccdcbaee0df6307a8c3364d28fe0 (patch) | |
tree | 327a99274ee99dc576cbb2e9657f5e0c6e1c56fc /source/blender/editors/screen | |
parent | 2905b493fe5b569069d6035c9a17ed855c03fa17 (diff) |
Cleanup: Use array as a parameter for event x/y functions
This change simplifies the parameter list for these functions
and reduces the chance of typos mixing up array indices.
Reviewed By: campbellbarton
Ref D12950
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index ca2eeca2284..861c2573de8 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -900,8 +900,7 @@ static AZone *area_actionzone_refresh_xy(ScrArea *area, const int xy[2], const b ARegion *region = az->region; View2D *v2d = ®ion->v2d; int scroll_flag = 0; - const int isect_value = UI_view2d_mouse_in_scrollers_ex( - region, v2d, xy[0], xy[1], &scroll_flag); + const int isect_value = UI_view2d_mouse_in_scrollers_ex(region, v2d, xy, &scroll_flag); /* Check if we even have scroll bars. */ if (((az->direction == AZ_SCROLL_HOR) && !(scroll_flag & V2D_SCROLL_HORIZONTAL)) || |