summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_rectangle_bounds.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-27 00:18:15 +0200
committerRay <[email protected]>2019-05-27 00:18:15 +0200
commit87774a0a21f8d2998b4dc13e989005270476ae92 (patch)
tree4228376c752b1760be44cc8582725ecac522939b /examples/text/text_rectangle_bounds.c
parent241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff)
downloadraylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz
raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip
Review variables initialization
Diffstat (limited to 'examples/text/text_rectangle_bounds.c')
-rw-r--r--examples/text/text_rectangle_bounds.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c
index 5871278f..abfb142b 100644
--- a/examples/text/text_rectangle_bounds.c
+++ b/examples/text/text_rectangle_bounds.c
@@ -22,7 +22,7 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [text] example - draw text inside a rectangle");
- char text[] = "Text cannot escape\tthis container\t...word wrap also works when active so here's\
+ const char text[] = "Text cannot escape\tthis container\t...word wrap also works when active so here's\
a long text for testing.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\
tempor incididunt ut labore et dolore magna aliqua. Nec ullamcorper sit amet risus nullam eget felis eget.";
@@ -38,15 +38,15 @@ int main(void)
const int maxWidth = screenWidth - 50;
const int maxHeight = screenHeight - 160;
- Vector2 lastMouse = { 0, 0 }; // Stores last mouse coordinates
- Color borderColor = MAROON; // Container border color
- Font font = GetFontDefault(); // Get default system font
+ Vector2 lastMouse = { 0.0f, 0.0f }; // Stores last mouse coordinates
+ Color borderColor = MAROON; // Container border color
+ Font font = GetFontDefault(); // Get default system font
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
+ while (!WindowShouldClose()) // Detect window close button or ESC key
{
// Update
//----------------------------------------------------------------------------------