Skip to content

Commit 72e51cd

Browse files
committed
Review formating
1 parent 700bff5 commit 72e51cd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/textures.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ Image ImageText(const char *text, int fontSize, Color color)
10701070
{
10711071
int defaultFontSize = 10; // Default Font chars height in pixel
10721072
if (fontSize < defaultFontSize) fontSize = defaultFontSize;
1073-
int spacing = fontSize / defaultFontSize;
1073+
int spacing = fontSize/defaultFontSize;
10741074

10751075
Image imText = ImageTextEx(GetFontDefault(), text, (float)fontSize, (float)spacing, color);
10761076

@@ -3231,14 +3231,14 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destR
32313231
if (patchWidth <= (leftBorder + rightBorder) && nPatchInfo.type != NPT_3PATCH_VERTICAL)
32323232
{
32333233
drawCenter = false;
3234-
leftBorder = (leftBorder / (leftBorder + rightBorder)) * patchWidth;
3234+
leftBorder = (leftBorder/(leftBorder + rightBorder))*patchWidth;
32353235
rightBorder = patchWidth - leftBorder;
32363236
}
32373237
// adjust the lateral (top and bottom) border heights in case patchHeight < texture.height
32383238
if (patchHeight <= (topBorder + bottomBorder) && nPatchInfo.type != NPT_3PATCH_HORIZONTAL)
32393239
{
32403240
drawMiddle = false;
3241-
topBorder = (topBorder / (topBorder + bottomBorder)) * patchHeight;
3241+
topBorder = (topBorder/(topBorder + bottomBorder))*patchHeight;
32423242
bottomBorder = patchHeight - topBorder;
32433243
}
32443244

@@ -3253,14 +3253,14 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destR
32533253
vertD.y = patchHeight; // outer bottom
32543254

32553255
Vector2 coordA, coordB, coordC, coordD;
3256-
coordA.x = nPatchInfo.sourceRec.x / width;
3257-
coordA.y = nPatchInfo.sourceRec.y / height;
3258-
coordB.x = (nPatchInfo.sourceRec.x + leftBorder) / width;
3259-
coordB.y = (nPatchInfo.sourceRec.y + topBorder) / height;
3260-
coordC.x = (nPatchInfo.sourceRec.x + nPatchInfo.sourceRec.width - rightBorder) / width;
3261-
coordC.y = (nPatchInfo.sourceRec.y + nPatchInfo.sourceRec.height - bottomBorder) / height;
3262-
coordD.x = (nPatchInfo.sourceRec.x + nPatchInfo.sourceRec.width) / width;
3263-
coordD.y = (nPatchInfo.sourceRec.y + nPatchInfo.sourceRec.height) / height;
3256+
coordA.x = nPatchInfo.sourceRec.x/width;
3257+
coordA.y = nPatchInfo.sourceRec.y/height;
3258+
coordB.x = (nPatchInfo.sourceRec.x + leftBorder)/width;
3259+
coordB.y = (nPatchInfo.sourceRec.y + topBorder)/height;
3260+
coordC.x = (nPatchInfo.sourceRec.x + nPatchInfo.sourceRec.width - rightBorder)/width;
3261+
coordC.y = (nPatchInfo.sourceRec.y + nPatchInfo.sourceRec.height - bottomBorder)/height;
3262+
coordD.x = (nPatchInfo.sourceRec.x + nPatchInfo.sourceRec.width)/width;
3263+
coordD.y = (nPatchInfo.sourceRec.y + nPatchInfo.sourceRec.height)/height;
32643264

32653265
rlEnableTexture(texture.id);
32663266

@@ -3271,7 +3271,7 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destR
32713271

32723272
rlBegin(RL_QUADS);
32733273
rlColor4ub(tint.r, tint.g, tint.b, tint.a);
3274-
rlNormal3f(0.0f, 0.0f, 1.0f); // Normal vector pointing towards viewer
3274+
rlNormal3f(0.0f, 0.0f, 1.0f); // Normal vector pointing towards viewer
32753275

32763276
if (nPatchInfo.type == NPT_9PATCH)
32773277
{

0 commit comments

Comments
 (0)