소스 검색

Update raygui.h

Ray 1 년 전
부모
커밋
9a9edd89b4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/raygui.h

+ 3 - 1
src/raygui.h

@@ -2582,7 +2582,9 @@ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode)
 
                     // Move backward text from cursor position
                     for (int i = (textBoxCursorIndex - prevCodepointSize); i < textLength; i++) text[i] = text[i + prevCodepointSize];
-
+                    
+                    // TODO Check: >= cursor+codepointsize and <= length-codepointsize
+                    
                     // Prevent cursor index from decrementing past 0
                     if (textBoxCursorIndex > 0)
                     {