소스 검색

Merge pull request #5026 from jonathandw743/sdlfix

fixed compile error for PLATFORM sdl
Ray 2 달 전
부모
커밋
5957564983
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/platforms/rcore_desktop_sdl.c

+ 1 - 1
src/platforms/rcore_desktop_sdl.c

@@ -1612,7 +1612,7 @@ void PollInputEvents(void)
                     unsigned int codepoint = (unsigned int)SDL_StepUTF8(&event.text.text, textLen);
                     #else
                     int codepointSize = 0;
-                    codepoint = GetCodepointNextSDL(event.text.text, &codepointSize);
+                    int codepoint = GetCodepointNextSDL(event.text.text, &codepointSize);
                     #endif
                     CORE.Input.Keyboard.charPressedQueue[CORE.Input.Keyboard.charPressedQueueCount] = codepoint;
                     CORE.Input.Keyboard.charPressedQueueCount++;