Jelajahi Sumber

fixed compile error for PLATFORM sdl

jonathandw743 2 bulan lalu
induk
melakukan
79c29cbe24
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
                     unsigned int codepoint = (unsigned int)SDL_StepUTF8(&event.text.text, textLen);
                     #else
                     #else
                     int codepointSize = 0;
                     int codepointSize = 0;
-                    codepoint = GetCodepointNextSDL(event.text.text, &codepointSize);
+                    int codepoint = GetCodepointNextSDL(event.text.text, &codepointSize);
                     #endif
                     #endif
                     CORE.Input.Keyboard.charPressedQueue[CORE.Input.Keyboard.charPressedQueueCount] = codepoint;
                     CORE.Input.Keyboard.charPressedQueue[CORE.Input.Keyboard.charPressedQueueCount] = codepoint;
                     CORE.Input.Keyboard.charPressedQueueCount++;
                     CORE.Input.Keyboard.charPressedQueueCount++;