always return false if rotation unavailable

This commit is contained in:
barbudreadmon 2021-11-08 17:59:31 +01:00 committed by GitHub
parent fc898d016b
commit 211e7d4094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7510,7 +7510,7 @@ bool runloop_environment_cb(unsigned cmd, void *data)
RARCH_LOG("[Environ]: SET_ROTATION: %u\n", rotation);
if (!video_allow_rotate)
break;
return false;
if (system)
system->rotation = rotation;