update textures mouse painting
This commit is contained in:
parent
9c2ba3bfb7
commit
12a97d8e0e
|
|
@ -187,8 +187,8 @@ int main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw top panel
|
// Draw top panel
|
||||||
DrawRectangle(0, 0, GetScreenWidth(), 50, RAYWHITE);
|
DrawRectangle(0, 0, GetScreenWidth(), 70, RAYWHITE);
|
||||||
DrawLine(0, 50, GetScreenWidth(), 50, LIGHTGRAY);
|
DrawLine(0, 70, GetScreenWidth(), 70, LIGHTGRAY);
|
||||||
|
|
||||||
// Draw color selection rectangles
|
// Draw color selection rectangles
|
||||||
for (int i = 0; i < MAX_COLORS_COUNT; i++) DrawRectangleRec(colorsRecs[i], colors[i]);
|
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);
|
DrawRectangleLinesEx(btnSaveRec, 2, btnSaveMouseHover ? RED : BLACK);
|
||||||
DrawText("SAVE!", 755, 20, 10, 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
|
// Draw save image message
|
||||||
if (showSaveMessage)
|
if (showSaveMessage)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user