fix mismatch of current display index and current display name

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-05-18 23:46:54 +08:00
1 parent ac96ddaecb
commit c4cefdb54b
2 files changed
+13 -9

No files matched your search

+2
View File
@@ -1043,6 +1043,8 @@ impl Connection {
})
.into();
#[cfg(not(any(target_os = "android", target_os = "ios")))]
video_service::try_reset_current_display();
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
pi.resolutions = Some(SupportedResolutions {
resolutions: video_service::get_current_display_name()