aboutsummaryrefslogtreecommitdiff
path: root/examples/text_font_select.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-08-30 17:46:37 +0200
committerraysan5 <raysan5@gmail.com>2015-08-30 17:46:37 +0200
commit32330801c96ad017de1334922a8a88f08811e6f4 (patch)
tree6d28ac760ef9198aba8ce3df0a87dbb9405fa231 /examples/text_font_select.c
parent535b9e606f6571c5d4163481d077ae3d5a79f1b8 (diff)
downloadraylib-32330801c96ad017de1334922a8a88f08811e6f4.tar.gz
raylib-32330801c96ad017de1334922a8a88f08811e6f4.zip
Updates some examples
Diffstat (limited to 'examples/text_font_select.c')
-rw-r--r--examples/text_font_select.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/text_font_select.c b/examples/text_font_select.c
index 25825aba..fe586db8 100644
--- a/examples/text_font_select.c
+++ b/examples/text_font_select.c
@@ -2,10 +2,10 @@
*
* raylib [text] example - Font selector
*
-* This example has been created using raylib 1.0 (www.raylib.com)
+* This example has been created using raylib 1.3 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (@raysan5)
+* Copyright (c) 2015 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
@@ -41,7 +41,7 @@ int main()
const char text[50] = "THIS is THE FONT you SELECTED!"; // Main text
- Vector2 textSize = MeasureTextEx(fonts[currentFont], text, GetFontBaseSize(fonts[currentFont])*3, 1);
+ Vector2 textSize = MeasureTextEx(fonts[currentFont], text, fonts[currentFont].size*3, 1);
Vector2 mousePoint;
@@ -118,7 +118,7 @@ int main()
}
// Text measurement for better positioning on screen
- textSize = MeasureTextEx(fonts[currentFont], text, GetFontBaseSize(fonts[currentFont])*3, 1);
+ textSize = MeasureTextEx(fonts[currentFont], text, fonts[currentFont].size*3, 1);
//----------------------------------------------------------------------------------
// Draw
@@ -140,7 +140,7 @@ int main()
DrawText("NEXT", 700, positionY + 13, 20, btnNextOutColor);
DrawTextEx(fonts[currentFont], text, (Vector2){ screenWidth/2 - textSize.x/2,
- 260 + (70 - textSize.y)/2 }, GetFontBaseSize(fonts[currentFont])*3,
+ 260 + (70 - textSize.y)/2 }, fonts[currentFont].size*3,
1, colors[currentFont]);
EndDrawing();