Merging r50049 through r50076 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / space_view3d / view3d_draw.c
index 9d988fbef4aea3d2f638c09395136e2641654302..39403d83b421a97a32cadf86d99df0dd0f163e88 100644 (file)
@@ -2038,8 +2038,8 @@ void view3d_update_depths_rect(ARegion *ar, ViewDepths *d, rcti *rect)
        x = rect->xmin;
        y = rect->ymin;
 
        x = rect->xmin;
        y = rect->ymin;
 
-       w = rect->xmax - rect->xmin;
-       h = rect->ymax - rect->ymin;
+       w = BLI_RCT_SIZE_X(rect);
+       h = BLI_RCT_SIZE_Y(rect);
 
        if (w <= 0 || h <= 0) {
                if (d->depths)
 
        if (w <= 0 || h <= 0) {
                if (d->depths)