Merging r50049 through r50076 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / space_node / node_draw.c
index 643ac177933640150da048d60ed1322af05a834f..087f86e4497d1fea236f577200a5bb2e83a442b1 100644 (file)
@@ -1108,7 +1108,7 @@ void drawnodespace(const bContext *C, ARegion *ar, View2D *v2d)
        glEnable(GL_MAP1_VERTEX_3);
 
        /* aspect+font, set each time */
-       snode->aspect = (v2d->cur.xmax - v2d->cur.xmin) / ((float)ar->winx);
+       snode->aspect = BLI_RCT_SIZE_X(&v2d->cur) / (float)ar->winx;
        snode->aspect_sqrt = sqrtf(snode->aspect);
        // XXX snode->curfont= uiSetCurFont_ext(snode->aspect);