X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fdevel-api%2Fimages%2Fdistance-field.cpp;h=63a5150b9c0364e6ce6319cd5dbe48f18b73e630;hp=6e4346dbb7c9a6e8bb4c8c55ebb41f01bf59a82c;hb=a17c4357f76f24d334fccde990de4daebf43e164;hpb=6b3059351d444bd6eb1e34b44474c5aa2bc3c64c diff --git a/dali/devel-api/images/distance-field.cpp b/dali/devel-api/images/distance-field.cpp old mode 100644 new mode 100755 index 6e4346d..63a5150 --- a/dali/devel-api/images/distance-field.cpp +++ b/dali/devel-api/images/distance-field.cpp @@ -84,8 +84,9 @@ const float MAX_DISTANCE( 1e20 ); */ void DistanceTransform( float *source, float* dest, unsigned int length ) { - int parabolas[length]; // Locations of parabolas in lower envelope - float edge[length + 1]; // Locations of boundaries between parabolas + std::vector parabolas(length); // Locations of parabolas in lower envelope + std::vector edge(length + 1); // Locations of boundaries between parabolas + int rightmost(0); // Index of rightmost parabola in lower envelope parabolas[0] = 0;