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>2013-05-08 16:54:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-08 16:54:33 +0400
commit5c4f96af2c9fc5afc676cf132e8171a66a973d1b (patch)
tree3085a2024f8bd07ea2b14a71c6003aaec24c3179 /source/blender/editors/space_image
parent62db610220867bb2b68a338b5fb8a2893f45fa80 (diff)
code cleanup: use 'const float[2]' where possible.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index ecbe4957c1b..dbb71007562 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -87,7 +87,7 @@
/******************** view navigation utilities *********************/
-static void sima_zoom_set(SpaceImage *sima, ARegion *ar, float zoom, float location[2])
+static void sima_zoom_set(SpaceImage *sima, ARegion *ar, float zoom, const float location[2])
{
float oldzoom = sima->zoom;
int width, height;
@@ -123,7 +123,7 @@ static void sima_zoom_set(SpaceImage *sima, ARegion *ar, float zoom, float locat
}
}
-static void sima_zoom_set_factor(SpaceImage *sima, ARegion *ar, float zoomfac, float location[2])
+static void sima_zoom_set_factor(SpaceImage *sima, ARegion *ar, float zoomfac, const float location[2])
{
sima_zoom_set(sima, ar, sima->zoom * zoomfac, location);
}