diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 15:47:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 15:47:47 +0400 |
commit | f39a21c36f63f2dac4dc530f6ea3d98efc75fd9d (patch) | |
tree | 82a08421488ab985c5d9c08ff5ad0343ee55d598 /source/blender/editors/space_clip | |
parent | fec872ef9c0bb6904cbe9a7b59b3f51ae7bb0702 (diff) |
add ED_space_image_get_size_fl, ED_space_clip_get_size_fl
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/clip_editor.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index 52f5960c559..92fcbc2964d 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -136,6 +136,14 @@ void ED_space_clip_get_size(const bContext *C, int *width, int *height) } } +void ED_space_clip_get_size_fl(const bContext *C, float size[2]) +{ + int size_i[2]; + ED_space_clip_get_size(C, &size_i[0], &size_i[1]); + size[0] = size_i[0]; + size[1] = size_i[1]; +} + void ED_space_clip_get_zoom(const bContext *C, float *zoomx, float *zoomy) { ARegion *ar = CTX_wm_region(C); |