SDL: Fix some embarrassing indentation errors

This commit is contained in:
Jeffrey Pfau 2015-04-17 01:56:31 -07:00
parent 6b975dcbd3
commit 592f6614aa
1 changed files with 4 additions and 4 deletions

View File

@ -142,8 +142,8 @@ bool GBASDLAttachPlayer(struct GBASDLEvents* events, struct GBASDLPlayer* player
player->joystickIndex = SIZE_MAX; player->joystickIndex = SIZE_MAX;
#if SDL_VERSION_ATLEAST(2, 0, 0) #if SDL_VERSION_ATLEAST(2, 0, 0)
player->rumble.d.setRumble = _GBASDLSetRumble; player->rumble.d.setRumble = _GBASDLSetRumble;
player->rumble.p = player; player->rumble.p = player;
#endif #endif
if (events->playersAttached >= MAX_PLAYERS) { if (events->playersAttached >= MAX_PLAYERS) {
@ -195,7 +195,7 @@ bool GBASDLAttachPlayer(struct GBASDLEvents* events, struct GBASDLPlayer* player
#if SDL_VERSION_ATLEAST(2, 0, 0) #if SDL_VERSION_ATLEAST(2, 0, 0)
player->haptic = events->haptic[player->joystickIndex]; player->haptic = events->haptic[player->joystickIndex];
if (player->haptic) { if (player->haptic) {
SDL_HapticRumbleInit(player->haptic); SDL_HapticRumbleInit(player->haptic);
} }
#endif #endif
} }
@ -438,7 +438,7 @@ static void _GBASDLSetRumble(struct GBARumble* rumble, int enable) {
return; return;
} }
if (enable) { if (enable) {
SDL_HapticRumblePlay(sdlRumble->p->haptic, 1.0f, 20); SDL_HapticRumblePlay(sdlRumble->p->haptic, 1.0f, 20);
} else { } else {
SDL_HapticRumbleStop(sdlRumble->p->haptic); SDL_HapticRumbleStop(sdlRumble->p->haptic);
} }