diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
commit | fe8d5b81b09462d2344a50b32bfd2d8df5c6d886 (patch) | |
tree | 6f1df9a8387a95c7fca3b28ecf168f1cb06214ea /source/blender/windowmanager | |
parent | de8e066a1ca29fe58295ee6b12b735d023528681 (diff) |
use c90 compatible static initializers.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 8 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 5 |
2 files changed, 10 insertions, 3 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); diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 2a9ef1e752e..c6baf0e53be 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2866,7 +2866,10 @@ int WM_radial_control_invoke(bContext *C, wmOperator *op, wmEvent *event) int mode = RNA_int_get(op->ptr, "mode"); float initial_value = RNA_float_get(op->ptr, "initial_value"); //float initial_size = RNA_float_get(op->ptr, "initial_size"); - int mouse[2] = {event->x, event->y}; + int mouse[2]; + + mouse[0]= event->x; + mouse[1]= event->y; //if (initial_size == 0) // initial_size = WM_RADIAL_CONTROL_DISPLAY_SIZE; |