code cleanup: rename BLI_in_rctf() --> BLI_rctf_isect_pt(), to conform with our naming convention.
This commit is contained in:
@@ -140,10 +140,10 @@ static void eyedropper_color_sample_fl(bContext *C, Eyedropper *UNUSED(eye), int
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
ScrArea *sa;
|
||||
for (sa = win->screen->areabase.first; sa; sa = sa->next) {
|
||||
if (BLI_in_rcti(&sa->totrct, mx, my)) {
|
||||
if (BLI_rcti_isect_pt(&sa->totrct, mx, my)) {
|
||||
if (sa->spacetype == SPACE_IMAGE) {
|
||||
ARegion *ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
|
||||
if (BLI_in_rcti(&ar->winrct, mx, my)) {
|
||||
if (BLI_rcti_isect_pt(&ar->winrct, mx, my)) {
|
||||
SpaceImage *sima = sa->spacedata.first;
|
||||
int mval[2] = {mx - ar->winrct.xmin,
|
||||
my - ar->winrct.ymin};
|
||||
@@ -155,7 +155,7 @@ static void eyedropper_color_sample_fl(bContext *C, Eyedropper *UNUSED(eye), int
|
||||
}
|
||||
else if (sa->spacetype == SPACE_NODE) {
|
||||
ARegion *ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
|
||||
if (BLI_in_rcti(&ar->winrct, mx, my)) {
|
||||
if (BLI_rcti_isect_pt(&ar->winrct, mx, my)) {
|
||||
SpaceNode *snode = sa->spacedata.first;
|
||||
int mval[2] = {mx - ar->winrct.xmin,
|
||||
my - ar->winrct.ymin};
|
||||
@@ -167,7 +167,7 @@ static void eyedropper_color_sample_fl(bContext *C, Eyedropper *UNUSED(eye), int
|
||||
}
|
||||
else if (sa->spacetype == SPACE_CLIP) {
|
||||
ARegion *ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
|
||||
if (BLI_in_rcti(&ar->winrct, mx, my)) {
|
||||
if (BLI_rcti_isect_pt(&ar->winrct, mx, my)) {
|
||||
SpaceClip *sc = sa->spacedata.first;
|
||||
int mval[2] = {mx - ar->winrct.xmin,
|
||||
my - ar->winrct.ymin};
|
||||
|
||||
Reference in New Issue
Block a user