Fixed whitespace

main
Sam Lantinga 2022-05-16 07:23:30 -07:00
parent f0bc5c9cbf
commit 48b6cd8bc2
1 changed files with 4 additions and 5 deletions

View File

@ -1076,11 +1076,10 @@ SDL_JoystickSetLED(SDL_Joystick *joystick, Uint8 red, Uint8 green, Uint8 blue)
green != joystick->led_green || green != joystick->led_green ||
blue != joystick->led_blue; blue != joystick->led_blue;
if ( isfreshvalue || SDL_TICKS_PASSED( SDL_GetTicks(), joystick->led_expiration ) ) { if (isfreshvalue || SDL_TICKS_PASSED(SDL_GetTicks(), joystick->led_expiration)) {
result = joystick->driver->SetLED(joystick, red, green, blue); result = joystick->driver->SetLED(joystick, red, green, blue);
joystick->led_expiration = SDL_GetTicks() + SDL_LED_MIN_REPEAT_MS; joystick->led_expiration = SDL_GetTicks() + SDL_LED_MIN_REPEAT_MS;
} } else {
else {
/* Avoid spamming the driver */ /* Avoid spamming the driver */
result = 0; result = 0;
} }