diff options
| author | Marc Palau <sucdepressec@gmail.com> | 2015-06-03 17:04:17 +0200 |
|---|---|---|
| committer | Marc Palau <sucdepressec@gmail.com> | 2015-06-03 17:04:17 +0200 |
| commit | 4c6c18202331b53e6c94cecc52db9e55f7a81517 (patch) | |
| tree | 8a819a41e6ad826b39f519e16cf108f8e64c9e4f /src/text.c | |
| parent | fca60cb597c141f1f1450eee1eb63f68d36db396 (diff) | |
| download | raylib-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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++) { |
