From 1a786bc9b74213003373b729e4029e4617cec5b7 Mon Sep 17 00:00:00 2001 From: manuel5975p Date: Tue, 29 Aug 2023 00:53:10 +0200 Subject: [PATCH] Update raygui.h (#323) * Update raygui.h Add pointers for correctness * Update raygui.h Move star to match raygui coding style --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 19f635e..d0cdc6c 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -4524,7 +4524,7 @@ const char **GetTextLines(const char *text, int *count) } // Get text width to next space for provided string -static int GetNextSpaceWidth(const char *text, int nextSpaceIndex) +static int GetNextSpaceWidth(const char *text, int *nextSpaceIndex) { int width = 0; int codepointByteCount = 0; @@ -4544,7 +4544,7 @@ static int GetNextSpaceWidth(const char *text, int nextSpaceIndex) } else { - nextSpaceIndex = i; + *nextSpaceIndex = i; break; } }