소스 검색

Adding a clarifying comment in case a programmer unfamiliar with UTF-16 and UTF-32's relationship chances upon the code.

hgs3 4 년 전
부모
커밋
cb0fd05eeb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/video/windows/SDL_windowsevents.c

+ 2 - 1
src/video/windows/SDL_windowsevents.c

@@ -898,7 +898,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
             }
             data->high_surrogate = 0;
         } else {
-            /* The code point is in the Basic Multilingual Plane */
+            /* The code point is in the Basic Multilingual Plane.
+               It's numerically equal to UTF-32. */
             char text[5];
             if (WIN_ConvertUTF32toUTF8((UINT32)wParam, text)) {
                 SDL_SendKeyboardText(text);