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:
authorCampbell Barton <ideasman42@gmail.com>2012-09-13 06:28:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-13 06:28:48 +0400
commitc5310521f8d9099fc36431bae76dd0a402cc077e (patch)
treed60e9f1807d8790355109fdf7975db4df45c7383 /source/blender/editors/space_image
parentab48f2108bc8ff1dfcc34e2f395debac97be7826 (diff)
fix for drawing non 1:1 aspect masks, transform and selection still need support.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 9cceaf0aa8e..91a0cba2555 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -682,10 +682,13 @@ static void image_main_area_draw(const bContext *C, ARegion *ar)
if (mask) {
int width, height;
+ float aspx, aspy;
ED_space_image_get_size(sima, &width, &height);
+ ED_space_image_get_aspect(sima, &aspx, &aspy);
ED_mask_draw_region(mask, ar,
sima->mask_info.draw_flag, sima->mask_info.draw_type,
width, height,
+ aspx, aspy,
TRUE, FALSE,
NULL, C);