fix, android rotate screen

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-11-03 07:17:40 +08:00
parent e96ae7a650
commit 059e067bdc
3 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,10 @@ use std::{
sync::{Arc, Mutex, RwLock},
};
#[cfg(any(target_os = "windows", feature = "unix-file-copy-paste",))]
use hbb_common::allow_err;
use hbb_common::{
allow_err, lazy_static, log,
lazy_static,
tokio::sync::{
mpsc::{unbounded_channel, UnboundedReceiver, UnboundedSender},
Mutex as TokioMutex,

View File

@ -95,7 +95,7 @@ pub fn new() -> ServerPtr {
id_count: hbb_common::rand::random::<i32>() % 1000 + 1000, // ensure positive
};
server.add_service(Box::new(audio_service::new()));
#[cfg(not(any(target_os = "android", target_os = "ios")))]
#[cfg(not(target_os = "ios"))]
server.add_service(Box::new(display_service::new()));
server.add_service(Box::new(video_service::new(
*display_service::PRIMARY_DISPLAY_IDX,

View File

@ -12,6 +12,7 @@ use scrap::Display;
pub const NAME: &'static str = "display";
#[cfg(all(windows, feature = "virtual_display_driver"))]
const DUMMY_DISPLAY_SIDE_MAX_SIZE: usize = 1024;
struct ChangedResolution {