Skip to content

Commit b149f09

Browse files
committed
General: Update clang-format settings
1 parent 2ecb99c commit b149f09

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ReflowComments: false
3131
IndentWrappedFunctionNames: false
3232
IndentCaseLabels: true
3333
ColumnLimit: 0
34-
AlignAfterOpenBracket: Align
34+
AlignAfterOpenBracket: BlockIndent
3535
AlignOperands: true
3636
AlignTrailingComments: true
3737
AlignConsecutiveAssignments: false

src/Engine/includes/BoneNode_Z.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ class BoneNode_Z {
99
void UpdateTM(BoneNode_Z* i_Parent);
1010

1111
inline void SetTranslation(const Vec3f& i_Translation) { m_Translation = i_Translation; }
12+
1213
inline Vec3f& GetTranslation() { return m_Translation; }
1314

1415
inline void SetScale(const Vec3f& i_Scale) { m_Scale = i_Scale; }
16+
1517
inline Vec3f& GetScale() { return m_Scale; }
1618

1719
inline void SetRotation(const Quat& i_Rotation) { m_Rotation = i_Rotation; }
20+
1821
inline Quat& GetRotation() { return m_Rotation; }
1922

2023
inline void SetRotInWorld(const Quat& i_Rotation) { m_RotInWorld = i_Rotation; }
24+
2125
inline Quat& GetRotInWorld() { return m_RotInWorld; }
2226

2327
inline void DisableFlag(U32 i_Flag) { m_Flag &= ~i_Flag; }

src/LibGC/wiitextures.c

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,10 @@ static void swizzle_offsets(U8* swizz, U8 const* offsets, U32 sourcewidth, U32 s
6262
}
6363
}
6464

65-
static S32 make_texture(U32 pitch, U32 height,
66-
GXTexFmt format,
67-
GXTexWrapMode type,
68-
GXTexObj* texture, void* ptr) {
69-
GXInitTexObj(texture,
70-
ptr,
71-
(U16)pitch, (U16)height,
72-
format,
73-
type, type,
74-
GX_FALSE);
75-
76-
GXInitTexObjLOD(texture,
77-
GX_NEAR, GX_NEAR,
78-
0, 0, 0.0f,
79-
GX_FALSE, 0, GX_ANISO_1);
65+
static S32 make_texture(U32 pitch, U32 height, GXTexFmt format, GXTexWrapMode type, GXTexObj* texture, void* ptr) {
66+
GXInitTexObj(texture, ptr, (U16)pitch, (U16)height, format, type, type, GX_FALSE);
67+
68+
GXInitTexObjLOD(texture, GX_NEAR, GX_NEAR, 0, 0, 0.0f, GX_FALSE, 0, GX_ANISO_1);
8069
return (1);
8170
}
8271

0 commit comments

Comments
 (0)