From adbd3c354d36d7f531d9b1b32e7965ff4ef2c984 Mon Sep 17 00:00:00 2001 From: start1a Date: Mon, 28 Sep 2020 18:47:45 +0900 Subject: [PATCH] fix animation replace error --- example/rlottiePlayer/Source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1