summaryrefslogtreecommitdiffhomepage
path: root/examples/textures
diff options
context:
space:
mode:
authorRay <[email protected]>2021-02-20 11:22:32 +0100
committerRay <[email protected]>2021-02-20 11:22:32 +0100
commit4604271c6ae82f7d861d12958e9fcf2608058280 (patch)
tree822df70bfbe4711ab2d2eb3e2c1f5bf72b303a73 /examples/textures
parent0a8cb60eee5902de9c81f2d83fa19e3bc24668ed (diff)
downloadraylib-4604271c6ae82f7d861d12958e9fcf2608058280.tar.gz
raylib-4604271c6ae82f7d861d12958e9fcf2608058280.zip
Code formatting tweaks
Diffstat (limited to 'examples/textures')
-rw-r--r--examples/textures/textures_mouse_painting.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/textures/textures_mouse_painting.c b/examples/textures/textures_mouse_painting.c
index fed6ece9..e9b876b4 100644
--- a/examples/textures/textures_mouse_painting.c
+++ b/examples/textures/textures_mouse_painting.c
@@ -35,7 +35,7 @@ int main(void)
for (int i = 0; i < MAX_COLORS_COUNT; i++)
{
- colorsRecs[i].x = 10 + 30 * i + 2 * i;
+ colorsRecs[i].x = 10 + 30*i + 2*i;
colorsRecs[i].y = 10;
colorsRecs[i].width = 30;
colorsRecs[i].height = 30;
@@ -95,7 +95,7 @@ int main(void)
}
// Change brush size
- brushSize += GetMouseWheelMove() * 5;
+ brushSize += GetMouseWheelMove()*5;
if (brushSize < 2) brushSize = 2;
if (brushSize > 50) brushSize = 50;
@@ -191,10 +191,8 @@ int main(void)
if (colorMouseHover >= 0) DrawRectangleRec(colorsRecs[colorMouseHover], Fade(WHITE, 0.6f));
- DrawRectangleLinesEx((Rectangle) {
- colorsRecs[colorSelected].x - 2, colorsRecs[colorSelected].y - 2,
- colorsRecs[colorSelected].width + 4, colorsRecs[colorSelected].height + 4
- }, 2, BLACK);
+ DrawRectangleLinesEx((Rectangle){ colorsRecs[colorSelected].x - 2, colorsRecs[colorSelected].y - 2,
+ colorsRecs[colorSelected].width + 4, colorsRecs[colorSelected].height + 4 }, 2, BLACK);
// Draw save image button
DrawRectangleLinesEx(btnSaveRec, 2, btnSaveMouseHover ? RED : BLACK);