From 12a97d8e0edb193e5b7cfa73be78b8e3dd2220aa Mon Sep 17 00:00:00 2001 From: CrackedPixel <5776225+CrackedPixel@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:51:22 -0500 Subject: [PATCH] update textures mouse painting --- examples/textures/textures_mouse_painting.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/textures/textures_mouse_painting.c b/examples/textures/textures_mouse_painting.c index 27bbc74e96d7..7fd23bd7f2e4 100644 --- a/examples/textures/textures_mouse_painting.c +++ b/examples/textures/textures_mouse_painting.c @@ -187,8 +187,8 @@ int main(void) } // Draw top panel - DrawRectangle(0, 0, GetScreenWidth(), 50, RAYWHITE); - DrawLine(0, 50, GetScreenWidth(), 50, LIGHTGRAY); + DrawRectangle(0, 0, GetScreenWidth(), 70, RAYWHITE); + DrawLine(0, 70, GetScreenWidth(), 70, LIGHTGRAY); // Draw color selection rectangles for (int i = 0; i < MAX_COLORS_COUNT; i++) DrawRectangleRec(colorsRecs[i], colors[i]); @@ -203,6 +203,9 @@ int main(void) DrawRectangleLinesEx(btnSaveRec, 2, btnSaveMouseHover ? RED : BLACK); DrawText("SAVE!", 755, 20, 10, btnSaveMouseHover ? RED : BLACK); + // Draw controls + DrawText("Left Click: Paint Right Click: Erase Mousewheel: Brush size", colorsRecs[0].x, colorsRecs[0].y + colorsRecs[0].height + 5, 20, BLACK); + // Draw save image message if (showSaveMessage) {