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_clip
parentab48f2108bc8ff1dfcc34e2f395debac97be7826 (diff)
fix for drawing non 1:1 aspect masks, transform and selection still need support.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/space_clip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index bb06104d442..7f43c404095 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -1131,10 +1131,13 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar)
if (mask) {
ScrArea *sa = CTX_wm_area(C);
int width, height;
+ float aspx, aspy;
ED_mask_get_size(sa, &width, &height);
+ ED_space_clip_get_aspect(sc, &aspx, &aspy);
ED_mask_draw_region(mask, ar,
sc->mask_info.draw_flag, sc->mask_info.draw_type,
width, height,
+ aspx, aspy,
TRUE, TRUE,
sc->stabmat, C);
}