瀏覽代碼

[cpp] Formatting

Mario Zechner 5 月之前
父節點
當前提交
b491d8ba4d
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      spine-c/spine-c/src/spine/Debug.c
  2. 1 1
      spine-c/spine-c/src/spine/IkConstraint.c

+ 2 - 2
spine-c/spine-c/src/spine/Debug.c

@@ -208,11 +208,11 @@ void spDebug_printTimeline(spTimeline *timeline) {
 		case SP_TIMELINE_SEQUENCE: {
 		case SP_TIMELINE_SEQUENCE: {
 			spSequenceTimeline *t = (spSequenceTimeline *) timeline;
 			spSequenceTimeline *t = (spSequenceTimeline *) timeline;
 			_spDebug_printTimelineBase(&t->super);
 			_spDebug_printTimelineBase(&t->super);
-		} // fallthrough
+		}// fallthrough
 		case SP_TIMELINE_INHERIT: {
 		case SP_TIMELINE_INHERIT: {
 			spInheritTimeline *t = (spInheritTimeline *) timeline;
 			spInheritTimeline *t = (spInheritTimeline *) timeline;
 			_spDebug_printTimelineBase(&t->super);
 			_spDebug_printTimelineBase(&t->super);
-		} // fallthrough
+		}// fallthrough
 		default: {
 		default: {
 			_spDebug_printTimelineBase(timeline);
 			_spDebug_printTimelineBase(timeline);
 		}
 		}

+ 1 - 1
spine-c/spine-c/src/spine/IkConstraint.c

@@ -98,7 +98,7 @@ void spIkConstraint_apply1(spBone *bone, float targetX, float targetY, int /*boo
 			pb = -sc * s * bone->skeleton->scaleX;
 			pb = -sc * s * bone->skeleton->scaleX;
 			pd = sa * s * bone->skeleton->scaleY;
 			pd = sa * s * bone->skeleton->scaleY;
 			rotationIK += ATAN2(sc, sa) * RAD_DEG;
 			rotationIK += ATAN2(sc, sa) * RAD_DEG;
-		} // fallthrough
+		}// fallthrough
 		default: {
 		default: {
 			float x = targetX - p->worldX, y = targetY - p->worldY;
 			float x = targetX - p->worldX, y = targetY - p->worldY;
 			float d = pa * pd - pb * pc;
 			float d = pa * pd - pb * pc;