Преглед изворни кода

Fixed using the wrong variable when reporting a missing SDL scancode mapping.

Sam Lantinga пре 12 година
родитељ
комит
7db31223e6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video/x11/SDL_x11keyboard.c

+ 1 - 1
src/video/x11/SDL_x11keyboard.c

@@ -271,7 +271,7 @@ X11_InitKeyboard(_THIS)
                 if (scancode == SDL_SCANCODE_UNKNOWN) {
                     printf("scancode not found\n");
                 } else {
-                    printf("scancode = %d (%s)\n", j, SDL_GetScancodeName(j));
+                    printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode));
                 }
             }
         }