summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_rectangle_bounds.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-26 00:36:22 +0200
committerRay <[email protected]>2021-04-26 00:36:22 +0200
commitbb3303338979dde40168928efc6ea31ed776407d (patch)
tree3c9e4652db2f54240655a39202dd73c06520034b /examples/text/text_rectangle_bounds.c
parenta44815e9395e63644e4adeac928155f1e465aed7 (diff)
parent30db611e924ad2ad61137a944a0da4257045cd5f (diff)
downloadraylib-bb3303338979dde40168928efc6ea31ed776407d.tar.gz
raylib-bb3303338979dde40168928efc6ea31ed776407d.zip
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'examples/text/text_rectangle_bounds.c')
-rw-r--r--examples/text/text_rectangle_bounds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c
index 4d3edacc..cb246955 100644
--- a/examples/text/text_rectangle_bounds.c
+++ b/examples/text/text_rectangle_bounds.c
@@ -29,14 +29,14 @@ tempor incididunt ut labore et dolore magna aliqua. Nec ullamcorper sit amet ris
bool resizing = false;
bool wordWrap = true;
- Rectangle container = { 25, 25, screenWidth - 50, screenHeight - 250};
+ Rectangle container = { 25.0f, 25.0f, screenWidth - 50.0f, screenHeight - 250.0f };
Rectangle resizer = { container.x + container.width - 17, container.y + container.height - 17, 14, 14 };
// Minimum width and heigh for the container rectangle
const float minWidth = 60;
const float minHeight = 60;
- const float maxWidth = screenWidth - 50;
- const float maxHeight = screenHeight - 160;
+ const float maxWidth = screenWidth - 50.0f;
+ const float maxHeight = screenHeight - 160.0f;
Vector2 lastMouse = { 0.0f, 0.0f }; // Stores last mouse coordinates
Color borderColor = MAROON; // Container border color
@@ -99,7 +99,7 @@ tempor incididunt ut labore et dolore magna aliqua. Nec ullamcorper sit amet ris
// Draw bottom info
DrawRectangle(0, screenHeight - 54, screenWidth, 54, GRAY);
- DrawRectangleRec((Rectangle){ 382, screenHeight - 34, 12, 12 }, MAROON);
+ DrawRectangleRec((Rectangle){ 382.0f, screenHeight - 34.0f, 12.0f, 12.0f }, MAROON);
DrawText("Word Wrap: ", 313, screenHeight-115, 20, BLACK);
if (wordWrap) DrawText("ON", 447, screenHeight - 115, 20, RED);