diff options
Diffstat (limited to 'src/wx')
-rw-r--r-- | src/wx/scancode_wx2sdl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/scancode_wx2sdl.h b/src/wx/scancode_wx2sdl.h index 1091a1c..a1030ee 100644 --- a/src/wx/scancode_wx2sdl.h +++ b/src/wx/scancode_wx2sdl.h @@ -299,7 +299,7 @@ SDL_Scancode scancode_wx2sdl(wxKeyEvent& event) int keysym = event.GetRawKeyCode(); - if (keysym == NoSymbol) + if (keysym == 0) { return SDL_SCANCODE_UNKNOWN; } @@ -322,7 +322,7 @@ SDL_Scancode scancode_wx2sdl(wxKeyEvent& event) return (SDL_Scancode)(SDL_SCANCODE_1 + (keysym - GDK_1)); } - for (i = 0; i < SDL_arraysize(KeySymToSDLScancode); ++i) + for (int i = 0; i < SDL_arraysize(KeySymToSDLScancode); ++i) { if (keysym == KeySymToSDLScancode[i].keysym) { |