From 43d695e82e8f39b143f56d8f93c061d58bdddfbc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Apr 2014 18:46:52 +1000 Subject: Code cleanup: view2d api naming --- source/blender/editors/space_nla/nla_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c index 46fd32541cb..08dc46ff043 100644 --- a/source/blender/editors/space_nla/nla_draw.c +++ b/source/blender/editors/space_nla/nla_draw.c @@ -132,7 +132,7 @@ static void nla_action_draw_keyframes(AnimData *adt, bAction *act, View2D *v2d, /* get View2D scaling factor */ - UI_view2d_getscale(v2d, &xscale, NULL); + UI_view2d_scale_get(v2d, &xscale, NULL); /* for now, color is hardcoded to be black */ glColor3f(0.0f, 0.0f, 0.0f); @@ -471,7 +471,7 @@ static void nla_draw_strip_text(AnimData *adt, NlaTrack *nlt, NlaStrip *strip, i rect.ymax = ymaxc; /* add this string to the cache of texts to draw */ - UI_view2d_text_cache_rectf(v2d, &rect, str, str_len, col); + UI_view2d_text_cache_add_rectf(v2d, &rect, str, str_len, col); } /* add frame extents to cache of text-strings to draw in pixelspace -- cgit v1.2.3