diff --git a/src/rtext.c b/src/rtext.c index 41ed9ebc9..f704a61b8 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1345,12 +1345,7 @@ Rectangle GetGlyphAtlasRec(Font font, int codepoint) unsigned int TextLength(const char *text) { // use strlen since it uses vector operations - bool result = false; - - if (text && strlen(text)) - result = true; - - return result; + return text ? strlen(text) : 0; } // Formatting of text with variables to 'embed'