summaryrefslogtreecommitdiffhomepage
path: root/examples/web/text/text_ttf_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-21 00:47:24 +0200
committerRay <[email protected]>2019-05-21 00:47:24 +0200
commit9393162926392c5d035c283b184764feaa3d31d1 (patch)
treed0b55dd9f4d3cdb93676685ea7903fa433166926 /examples/web/text/text_ttf_loading.c
parent1dae9d9af3820d58b7a6d71d63d1cd000ca1da45 (diff)
downloadraylib.com-9393162926392c5d035c283b184764feaa3d31d1.tar.gz
raylib.com-9393162926392c5d035c283b184764feaa3d31d1.zip
Corrected some examples
Diffstat (limited to 'examples/web/text/text_ttf_loading.c')
-rw-r--r--examples/web/text/text_ttf_loading.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/web/text/text_ttf_loading.c b/examples/web/text/text_ttf_loading.c
index 44e4415..31d378e 100644
--- a/examples/web/text/text_ttf_loading.c
+++ b/examples/web/text/text_ttf_loading.c
@@ -25,7 +25,7 @@ const char msg[50] = "TTF SpriteFont";
Font font = { 0 };
float fontSize = 0.0f;
-Vector2 fontPosition = { 40, screenHeight/2 + 50 };
+Vector2 fontPosition = { 0.0f };
Vector2 textSize = { 0 };
int currentFontFilter = 0; // FILTER_POINT
@@ -56,6 +56,8 @@ int main(void)
fontSize = font.baseSize;
SetTextureFilter(font.texture, FILTER_POINT);
+
+ fontPosition = (Vector2){ 40, screenHeight/2 - 70 };
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);