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-07-26 15:47:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-26 15:47:47 +0400
commitf39a21c36f63f2dac4dc530f6ea3d98efc75fd9d (patch)
tree82a08421488ab985c5d9c08ff5ad0343ee55d598 /source/blender/editors/space_image/image_edit.c
parentfec872ef9c0bb6904cbe9a7b59b3f51ae7bb0702 (diff)
add ED_space_image_get_size_fl, ED_space_clip_get_size_fl
Diffstat (limited to 'source/blender/editors/space_image/image_edit.c')
-rw-r--r--source/blender/editors/space_image/image_edit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_edit.c b/source/blender/editors/space_image/image_edit.c
index 927f65f239b..65df6f98efb 100644
--- a/source/blender/editors/space_image/image_edit.c
+++ b/source/blender/editors/space_image/image_edit.c
@@ -192,6 +192,14 @@ void ED_space_image_get_size(SpaceImage *sima, int *width, int *height)
ED_space_image_release_buffer(sima, lock);
}
+void ED_space_image_get_size_fl(SpaceImage *sima, float size[2])
+{
+ int size_i[2];
+ ED_space_image_get_size(sima, &size_i[0], &size_i[1]);
+ size[0] = size_i[0];
+ size[1] = size_i[1];
+}
+
void ED_image_get_aspect(Image *ima, float *aspx, float *aspy)
{
*aspx = *aspy = 1.0;