minor refactor for rect functions. more consistent naming.
[blender.git] / source / blender / editors / space_image / image_buttons.c
index 99969405f9cec898a3bec4a5a92fda73236572f7..7989a8e1b34b3cf3b22ce060444770556098987c 100644 (file)
@@ -280,7 +280,7 @@ static void preview_cb(struct ScrArea *sa, struct uiBlock *block)
        ui_graphics_to_window_rct(sa->win, &dispf, disprect);
        
        /* correction for gla draw */
-       BLI_translate_rcti(disprect, -curarea->winrct.xmin, -curarea->winrct.ymin);
+       BLI_rcti_translate(disprect, -curarea->winrct.xmin, -curarea->winrct.ymin);
        
        calc_image_view(sima, 'p');
 //     printf("winrct %d %d %d %d\n", disprect->xmin, disprect->ymin,disprect->xmax, disprect->ymax);