Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Examples] update textures mouse painting #4231

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/textures/textures_mouse_painting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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)
{
Expand Down
Loading