mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine SwShape: Fix coding style
This commit is contained in:
parent
c326b6ac3e
commit
791275c30a
1 changed files with 4 additions and 4 deletions
|
@ -297,7 +297,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform)
|
||||||
auto outlineCntrsCnt = 0;
|
auto outlineCntrsCnt = 0;
|
||||||
|
|
||||||
for (uint32_t i = 0; i < cmdCnt; ++i) {
|
for (uint32_t i = 0; i < cmdCnt; ++i) {
|
||||||
switch(*(cmds + i)) {
|
switch (*(cmds + i)) {
|
||||||
case PathCommand::Close: {
|
case PathCommand::Close: {
|
||||||
++outlinePtsCnt;
|
++outlinePtsCnt;
|
||||||
break;
|
break;
|
||||||
|
@ -326,7 +326,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform)
|
||||||
_growOutlineContour(*dash.outline, outlineCntrsCnt * 20);
|
_growOutlineContour(*dash.outline, outlineCntrsCnt * 20);
|
||||||
|
|
||||||
while (cmdCnt-- > 0) {
|
while (cmdCnt-- > 0) {
|
||||||
switch(*cmds) {
|
switch (*cmds) {
|
||||||
case PathCommand::Close: {
|
case PathCommand::Close: {
|
||||||
_dashLineTo(dash, &dash.ptStart, transform);
|
_dashLineTo(dash, &dash.ptStart, transform);
|
||||||
break;
|
break;
|
||||||
|
@ -397,7 +397,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf
|
||||||
auto closeCnt = 0;
|
auto closeCnt = 0;
|
||||||
|
|
||||||
for (uint32_t i = 0; i < cmdCnt; ++i) {
|
for (uint32_t i = 0; i < cmdCnt; ++i) {
|
||||||
switch(*(cmds + i)) {
|
switch (*(cmds + i)) {
|
||||||
case PathCommand::Close: {
|
case PathCommand::Close: {
|
||||||
++outlinePtsCnt;
|
++outlinePtsCnt;
|
||||||
++closeCnt;
|
++closeCnt;
|
||||||
|
@ -440,7 +440,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf
|
||||||
|
|
||||||
//Generate Outlines
|
//Generate Outlines
|
||||||
while (cmdCnt-- > 0) {
|
while (cmdCnt-- > 0) {
|
||||||
switch(*cmds) {
|
switch (*cmds) {
|
||||||
case PathCommand::Close: {
|
case PathCommand::Close: {
|
||||||
_outlineClose(*outline);
|
_outlineClose(*outline);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue