all repos — mgba @ 3b0ff3ea561ba7166c63c498e7a28d893310fa38

mGBA Game Boy Advance Emulator

Qt: Fix SDL 1.2 build
Crestwave crest.wave@yahoo.com
Sun, 01 Mar 2020 09:51:21 +0800
commit

3b0ff3ea561ba7166c63c498e7a28d893310fa38

parent

71995f77d5e004e5d03f6fc06c0fdb77fe03cf98

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/InputController.cppsrc/platform/qt/InputController.cpp

@@ -272,8 +272,8 @@ if (!m_config) {

return; } #ifdef BUILD_SDL - char name[34] = {0}; #if SDL_VERSION_ATLEAST(2, 0, 0) + char name[34] = {0}; SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(SDL_JoystickListGetPointer(&s_sdlEvents.joysticks, index)->joystick), name, sizeof(name)); #else const char* name = SDL_JoystickName(SDL_JoystickIndex(SDL_JoystickListGetPointer(&s_sdlEvents.joysticks, index)->joystick));