From: JunsuChoi Date: Mon, 25 Oct 2021 05:33:20 +0000 (+0900) Subject: example: Modify the number of svg image examples X-Git-Tag: accepted/tizen/unified/20211102.024808~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13f550fb38236363ba52c745bad2dc7f0621c208;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git example: Modify the number of svg image examples Find the hidden example... --- diff --git a/src/examples/Svg.cpp b/src/examples/Svg.cpp index 7c05cdf..da30c14 100644 --- a/src/examples/Svg.cpp +++ b/src/examples/Svg.cpp @@ -27,8 +27,9 @@ /* Drawing Commands */ /************************************************************************/ -#define NUM_PER_LINE 6 -#define SIZE (WIDTH/NUM_PER_LINE) +#define NUM_PER_ROW 7 +#define NUM_PER_COL 6 +#define SIZE (WIDTH/NUM_PER_ROW) static int count = 0; @@ -48,7 +49,7 @@ void svgDirCallback(const char* name, const char* path, void* data) if (picture->load(buf) != tvg::Result::Success) return; picture->size(SIZE, SIZE); - picture->translate((count % NUM_PER_LINE) * SIZE, SIZE * (count / NUM_PER_LINE)); + picture->translate((count % NUM_PER_ROW) * SIZE, (count / NUM_PER_ROW) * (HEIGHT / NUM_PER_COL)); pictures.push_back(move(picture));