all repos — mgba @ 592f6614aaa513e94905cafd74695397146bfaa9

mGBA Game Boy Advance Emulator

SDL: Fix some embarrassing indentation errors
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Apr 2015 01:56:31 -0700
commit

592f6614aaa513e94905cafd74695397146bfaa9

parent

6b975dcbd3e402df553b2d1e9e5458e58fa02b86

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

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -142,8 +142,8 @@ player->joystick = 0;

player->joystickIndex = SIZE_MAX; #if SDL_VERSION_ATLEAST(2, 0, 0) - player->rumble.d.setRumble = _GBASDLSetRumble; - player->rumble.p = player; + player->rumble.d.setRumble = _GBASDLSetRumble; + player->rumble.p = player; #endif if (events->playersAttached >= MAX_PLAYERS) {

@@ -195,7 +195,7 @@

#if SDL_VERSION_ATLEAST(2, 0, 0) player->haptic = events->haptic[player->joystickIndex]; if (player->haptic) { - SDL_HapticRumbleInit(player->haptic); + SDL_HapticRumbleInit(player->haptic); } #endif }

@@ -438,7 +438,7 @@ if (!sdlRumble->p->haptic || !SDL_HapticRumbleSupported(sdlRumble->p->haptic)) {

return; } if (enable) { - SDL_HapticRumblePlay(sdlRumble->p->haptic, 1.0f, 20); + SDL_HapticRumblePlay(sdlRumble->p->haptic, 1.0f, 20); } else { SDL_HapticRumbleStop(sdlRumble->p->haptic); }