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