Fixed build

(cherry picked from commit ab19d09939)
This commit is contained in:
Sam Lantinga
2026-05-06 19:42:39 -07:00
parent 1704eb5e2e
commit a730905a2b

View File

@@ -1976,7 +1976,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
state = SDL_POWERSTATE_ON_BATTERY;
break;
}
if (state == SDL_POWERSTATE_ON_BATTERY || SDL_POWERSTATE_CHARGING) {
if (state == SDL_POWERSTATE_ON_BATTERY || state == SDL_POWERSTATE_CHARGING) {
switch (battery_info->BatteryLevel) {
case BATTERY_LEVEL_EMPTY:
percent = 10;