summaryrefslogtreecommitdiffhomepage
path: root/examples/text_bmfont_unordered.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-02-05 02:59:39 +0100
committerraysan5 <[email protected]>2017-02-05 02:59:39 +0100
commit1a879ba08efe1877c26a76bfabd43f282d2b2a97 (patch)
tree7870e105ee57aaab20ffd89f5708948960d34460 /examples/text_bmfont_unordered.c
parenta08117155da1a0a439239ad8801a58b85f528014 (diff)
downloadraylib-1a879ba08efe1877c26a76bfabd43f282d2b2a97.tar.gz
raylib-1a879ba08efe1877c26a76bfabd43f282d2b2a97.zip
Refactor SpriteFont struct
Now it uses CharInfo data, this way, it's better aligned with the future RRES file format data layout for sprite font characters.
Diffstat (limited to 'examples/text_bmfont_unordered.c')
-rw-r--r--examples/text_bmfont_unordered.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/text_bmfont_unordered.c b/examples/text_bmfont_unordered.c
index b29c5f8b..6fec3256 100644
--- a/examples/text_bmfont_unordered.c
+++ b/examples/text_bmfont_unordered.c
@@ -45,10 +45,10 @@ int main()
ClearBackground(RAYWHITE);
DrawText("Font name: PixAntiqua", 40, 50, 20, GRAY);
- DrawText(FormatText("Font base size: %i", font.size), 40, 80, 20, GRAY);
- DrawText(FormatText("Font chars number: %i", font.numChars), 40, 110, 20, GRAY);
+ DrawText(FormatText("Font base size: %i", font.baseSize), 40, 80, 20, GRAY);
+ DrawText(FormatText("Font chars number: %i", font.charsCount), 40, 110, 20, GRAY);
- DrawTextEx(font, msg, (Vector2){ 40, 180 }, font.size, 0, MAROON);
+ DrawTextEx(font, msg, (Vector2){ 40, 180 }, font.baseSize, 0, MAROON);
EndDrawing();
//----------------------------------------------------------------------------------