From 3080fd040006a9acd81d467f0f62a75614baeaf2 Mon Sep 17 00:00:00 2001 From: DissolveDZ Date: Sat, 30 Sep 2023 19:02:10 +0200 Subject: [PATCH] make functions fall more inline with the standard structure of raylib functions --- src/rtext.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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'