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>2010-11-03 09:31:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-03 09:31:53 +0300
commitfe8d5b81b09462d2344a50b32bfd2d8df5c6d886 (patch)
tree6f1df9a8387a95c7fca3b28ecf168f1cb06214ea /source/blender/windowmanager/intern/wm_gesture.c
parentde8e066a1ca29fe58295ee6b12b735d023528681 (diff)
use c90 compatible static initializers.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c
index 8dcf65886e4..c1e28654f73 100644
--- a/source/blender/windowmanager/intern/wm_gesture.c
+++ b/source/blender/windowmanager/intern/wm_gesture.c
@@ -232,8 +232,12 @@ static void draw_filled_lasso(wmGesture *gt)
int i;
for (i=0; i<gt->points; i++, lasso+=2) {
- float co[3] = {(float)lasso[0], (float)lasso[1], 0.f};
-
+ float co[3];
+
+ co[0]= (float)lasso[0];
+ co[1]= (float)lasso[1];
+ co[2]= 0.0f;
+
v = BLI_addfillvert(co);
if (lastv)
e = BLI_addfilledge(lastv, v);