Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeverin <eiseljulian@gmail.com>2018-06-30 02:56:07 +0300
committerSeverin <eiseljulian@gmail.com>2018-06-30 02:56:07 +0300
commit1f1c2d8ce8744c84d0c663885ef5da04c301fefc (patch)
tree6591e47ea2f27f6d1d91f505d35d58cfbb7cc432 /source/blender/editors/screen/screen_draw.c
parenta55b00b53baf2e202b88cbea0f61a232ff9843d3 (diff)
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.
Diffstat (limited to 'source/blender/editors/screen/screen_draw.c')
-rw-r--r--source/blender/editors/screen/screen_draw.c8
1 files changed, 4 insertions, 4 deletions
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;