Fix, windows display orders

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-11-12 00:08:16 +08:00
parent 58596ad1ab
commit 8f8c9ddc25
7 changed files with 53 additions and 23 deletions

View File

@@ -249,7 +249,7 @@ pub fn test_create_capturer(
) -> String {
let test_begin = Instant::now();
loop {
let err = match Display::all() {
let err = match super::display_service::get_displays(true) {
Ok(mut displays) => {
if displays.len() <= display_idx {
anyhow!(
@@ -322,7 +322,7 @@ fn get_capturer(current: usize, portable_service_running: bool) -> ResultType<Ca
}
}
let mut displays = Display::all()?;
let mut displays = super::display_service::get_displays(true)?;
let ndisplay = displays.len();
if ndisplay <= current {
bail!(