diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-20 14:52:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-20 16:34:20 +0300 |
commit | 5cad6afac663b05819f5e5a887ec31515a2cf16c (patch) | |
tree | dd1093a7ccb709f8947ac9bd0f54e7ab6500766e /source/blender/editors/screen/screen_ops.c | |
parent | daaf315bf225bd8f151aaa8dd926c0c43732cba4 (diff) |
Cleanup: rename is_in_area_actionzone
Diffstat (limited to 'source/blender/editors/screen/screen_ops.c')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index e76ef3faa59..d1510f60517 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -665,7 +665,7 @@ static void fullscreen_click_rcti_init(rcti *rect, const short x1, const short y BLI_rcti_init(rect, x, x + icon_size, y, y + icon_size); } -AZone *is_in_area_actionzone(ScrArea *sa, const int xy[2]) +AZone *ED_area_actionzone_find_xy(ScrArea *sa, const int xy[2]) { AZone *az = NULL; @@ -760,7 +760,7 @@ static void actionzone_apply(bContext *C, wmOperator *op, int type) static int actionzone_invoke(bContext *C, wmOperator *op, const wmEvent *event) { ScrArea *sa = CTX_wm_area(C); - AZone *az = is_in_area_actionzone(sa, &event->x); + AZone *az = ED_area_actionzone_find_xy(sa, &event->x); sActionzoneData *sad; /* quick escape */ @@ -817,7 +817,7 @@ static int actionzone_modal(bContext *C, wmOperator *op, const wmEvent *event) if (sad->az->type == AZONE_AREA) { /* once we drag outside the actionzone, register a gesture * check we're not on an edge so join finds the other area */ - is_gesture = ((is_in_area_actionzone(sad->sa1, &event->x) != sad->az) && + is_gesture = ((ED_area_actionzone_find_xy(sad->sa1, &event->x) != sad->az) && (screen_find_active_scredge(sc, winsize_x, winsize_y, event->x, event->y) == NULL)); } else { |