From: start1a Date: Mon, 28 Sep 2020 09:47:45 +0000 (+0900) Subject: fix animation replace error X-Git-Tag: submit/tizen/20201101.231042~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adbd3c354d36d7f531d9b1b32e7965ff4ef2c984;p=platform%2Fcore%2Fuifw%2Flottie-player.git fix animation replace error --- diff --git a/example/rlottiePlayer/Source.cpp b/example/rlottiePlayer/Source.cpp index cf6d851..99ea876 100644 --- a/example/rlottiePlayer/Source.cpp +++ b/example/rlottiePlayer/Source.cpp @@ -27,11 +27,11 @@ void setAnimation(char* path, size_t* w, size_t* h) uint32_t* renderRLottieAnimation(uint32_t frameNum) { - static Surface surface = Surface(buffer, width, height, bytesPerLine); + Surface surface = Surface(buffer, width, height, bytesPerLine); anim->renderSync(frameNum, surface); // background color for (int i = 0; i < height; i++) - for (int j = 0; j < width; ++j) + for (int j = 0; j < width; ++j) { uint32_t* v = buffer + i * width + j; if (*v == 0) *v = curColor;