mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 10:30:58 +00:00
Fixed compile warning
This commit is contained in:
parent
6b56b98fc3
commit
2e8e3854b8
|
@ -366,7 +366,7 @@ HIDAPI_DriverPS4_ApplyCalibrationData(SDL_DriverPS4_Context *ctx, int index, Sin
|
||||||
|
|
||||||
/* Convert the raw data to the units expected by SDL */
|
/* Convert the raw data to the units expected by SDL */
|
||||||
if (index < 3) {
|
if (index < 3) {
|
||||||
result = (result / GYRO_RES_PER_DEGREE) * M_PI / 180.0f;
|
result = (result / GYRO_RES_PER_DEGREE) * (float)M_PI / 180.0f;
|
||||||
} else {
|
} else {
|
||||||
result = (result / ACCEL_RES_PER_G) * SDL_STANDARD_GRAVITY;
|
result = (result / ACCEL_RES_PER_G) * SDL_STANDARD_GRAVITY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue