mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-05 00:35:23 +00:00
Disable broken options on Android 14
The options --lock-video-orientation and --crop are broken since Android 14. Hopefully, they will be reimplemented differently. Meanwhile, when running Android >= 14, fail with an error to prevent incorrect behavior. Refs #4011 <https://github.com/Genymobile/scrcpy/issues/4011> Refs #4162 <https://github.com/Genymobile/scrcpy/issues/4162> PR #5417 <https://github.com/Genymobile/scrcpy/pull/5417>
This commit is contained in:
@@ -134,6 +134,8 @@ enum sc_lock_video_orientation {
|
||||
SC_LOCK_VIDEO_ORIENTATION_UNLOCKED = -1,
|
||||
// lock the current orientation when scrcpy starts
|
||||
SC_LOCK_VIDEO_ORIENTATION_INITIAL = -2,
|
||||
// like SC_LOCK_VIDEO_ORIENTATION_INITIAL, but set automatically
|
||||
SC_LOCK_VIDEO_ORIENTATION_INITIAL_AUTO = -3,
|
||||
SC_LOCK_VIDEO_ORIENTATION_0 = 0,
|
||||
SC_LOCK_VIDEO_ORIENTATION_90 = 3,
|
||||
SC_LOCK_VIDEO_ORIENTATION_180 = 2,
|
||||
|
Reference in New Issue
Block a user