From 791275c30a77d9d37310e5897ddb1e9855a86948 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 14 Dec 2021 20:29:01 -0800 Subject: [PATCH] sw_engine SwShape: Fix coding style --- src/lib/sw_engine/tvgSwShape.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/sw_engine/tvgSwShape.cpp b/src/lib/sw_engine/tvgSwShape.cpp index ca5548c5..7b49c232 100644 --- a/src/lib/sw_engine/tvgSwShape.cpp +++ b/src/lib/sw_engine/tvgSwShape.cpp @@ -297,7 +297,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform) auto outlineCntrsCnt = 0; for (uint32_t i = 0; i < cmdCnt; ++i) { - switch(*(cmds + i)) { + switch (*(cmds + i)) { case PathCommand::Close: { ++outlinePtsCnt; break; @@ -326,7 +326,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform) _growOutlineContour(*dash.outline, outlineCntrsCnt * 20); while (cmdCnt-- > 0) { - switch(*cmds) { + switch (*cmds) { case PathCommand::Close: { _dashLineTo(dash, &dash.ptStart, transform); break; @@ -397,7 +397,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf auto closeCnt = 0; for (uint32_t i = 0; i < cmdCnt; ++i) { - switch(*(cmds + i)) { + switch (*(cmds + i)) { case PathCommand::Close: { ++outlinePtsCnt; ++closeCnt; @@ -440,7 +440,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf //Generate Outlines while (cmdCnt-- > 0) { - switch(*cmds) { + switch (*cmds) { case PathCommand::Close: { _outlineClose(*outline); break;