From 1f1c2d8ce8744c84d0c663885ef5da04c301fefc Mon Sep 17 00:00:00 2001 From: Severin Date: Sat, 30 Jun 2018 01:56:07 +0200 Subject: Cleanup: Move area geometry management into an own file Area geometry management is quite complex and not easy to get into. We should gradualy build an API that abstracts away this complexity. --- source/blender/editors/screen/screen_draw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/screen/screen_draw.c') diff --git a/source/blender/editors/screen/screen_draw.c b/source/blender/editors/screen/screen_draw.c index 0a693893310..b5b0d16f6a7 100644 --- a/source/blender/editors/screen/screen_draw.c +++ b/source/blender/editors/screen/screen_draw.c @@ -44,8 +44,8 @@ */ static void draw_horizontal_join_shape(ScrArea *sa, char dir, unsigned int pos) { - const float width = area_geometry_width(sa) - 1; - const float height = area_geometry_height(sa) - 1; + const float width = screen_geom_area_width(sa) - 1; + const float height = screen_geom_area_height(sa) - 1; vec2f points[10]; short i; float w, h; @@ -125,8 +125,8 @@ static void draw_horizontal_join_shape(ScrArea *sa, char dir, unsigned int pos) */ static void draw_vertical_join_shape(ScrArea *sa, char dir, unsigned int pos) { - const float width = area_geometry_width(sa) - 1; - const float height = area_geometry_height(sa) - 1; + const float width = screen_geom_area_width(sa) - 1; + const float height = screen_geom_area_height(sa) - 1; vec2f points[10]; short i; float w, h; -- cgit v1.2.3