diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-13 06:28:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-13 06:28:48 +0400 |
commit | c5310521f8d9099fc36431bae76dd0a402cc077e (patch) | |
tree | d60e9f1807d8790355109fdf7975db4df45c7383 /source/blender/editors/space_image | |
parent | ab48f2108bc8ff1dfcc34e2f395debac97be7826 (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.c | 3 |
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); |