浏览代码

Update raygui.h (#323)

* Update raygui.h

Add pointers for correctness

* Update raygui.h

Move star to match raygui coding style
manuel5975p 2 年之前
父节点
当前提交
1a786bc9b7
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
 // 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 width = 0;
     int codepointByteCount = 0;
     int codepointByteCount = 0;
@@ -4544,7 +4544,7 @@ static int GetNextSpaceWidth(const char *text, int nextSpaceIndex)
         }
         }
         else
         else
         {
         {
-            nextSpaceIndex = i;
+            *nextSpaceIndex = i;
             break;
             break;
         }
         }
     }
     }