minor refactor for rect functions. more consistent naming.
[blender.git] / source / blender / editors / interface / interface_draw.c
index e576b71e4423b52fddd9dd3aadc7880e265c9d71..1d88838ecc56c48e71706599f638d2977a987607 100644 (file)
@@ -1353,7 +1353,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
        scissor_new.ymin = ar->winrct.ymin + rect->ymin;
        scissor_new.xmax = ar->winrct.xmin + rect->xmax;
        scissor_new.ymax = ar->winrct.ymin + rect->ymax;
-       BLI_isect_rcti(&scissor_new, &ar->winrct, &scissor_new);
+       BLI_rcti_isect(&scissor_new, &ar->winrct, &scissor_new);
        glScissor(scissor_new.xmin, scissor_new.ymin, scissor_new.xmax - scissor_new.xmin, scissor_new.ymax - scissor_new.ymin);
        
        /* calculate offset and zoom */