aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorMarc Palau <sucdepressec@gmail.com>2015-06-03 17:04:17 +0200
committerMarc Palau <sucdepressec@gmail.com>2015-06-03 17:04:17 +0200
commit4c6c18202331b53e6c94cecc52db9e55f7a81517 (patch)
tree8a819a41e6ad826b39f519e16cf108f8e64c9e4f /src/text.c
parentfca60cb597c141f1f1450eee1eb63f68d36db396 (diff)
downloadraylib-4c6c18202331b53e6c94cecc52db9e55f7a81517.tar.gz
raylib-4c6c18202331b53e6c94cecc52db9e55f7a81517.zip
Corrected gesture tap issue and text scaling issue
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index b4fb54af..1647070c 100644
--- a/src/text.c
+++ b/src/text.c
@@ -295,8 +295,10 @@ void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, int f
Character c;
- if (fontSize <= spriteFont.charSet[0].h) scaleFactor = 1.0f;
- else scaleFactor = (float)fontSize / spriteFont.charSet[0].h;
+ //if (fontSize <= spriteFont.charSet[0].h) scaleFactor = 1.0f;
+ //else scaleFactor = (float)fontSize / spriteFont.charSet[0].h;
+
+ scaleFactor = (float)fontSize/spriteFont.charSet[0].h;
for(int i = 0; i < length; i++)
{