Răsfoiți Sursa

Update raygui.h (#323)

* Update raygui.h

Add pointers for correctness

* Update raygui.h

Move star to match raygui coding style
manuel5975p 2 ani în urmă
părinte
comite
1a786bc9b7
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/raygui.h

+ 2 - 2
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;
         }
     }