add ED_space_image_get_size_fl, ED_space_clip_get_size_fl

This commit is contained in:
2012-07-26 11:47:47 +00:00
parent fec872ef9c
commit f39a21c36f
7 changed files with 24 additions and 18 deletions

View File

@@ -1452,12 +1452,9 @@ void calculateCenterCursor2D(TransInfo *t)
if (cursor) {
if (t->options & CTX_MASK) {
float co[2];
int width, height;
float frame_size[2];
SpaceImage *sima = (SpaceImage *)t->sa->spacedata.first;
ED_space_image_get_size(sima, &width, &height);
frame_size[0] = width;
frame_size[1] = height;
ED_space_image_get_size_fl(sima, frame_size);
BKE_mask_coord_from_frame(co, cursor, frame_size);