misspelling

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-01-29 09:26:55 +08:00
parent b84f3ba1ee
commit c0adc14215
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ cfg_if! {
mod x11; mod x11;
pub use self::linux::*; pub use self::linux::*;
pub use self::x11::Frame; pub use self::x11::Frame;
pub use self::wayland::{set_map_err, detect_cursor_embeded}; pub use self::wayland::{set_map_err, detect_cursor_embedded};
} else { } else {
mod x11; mod x11;
pub use self::x11::*; pub use self::x11::*;

View File

@ -10,7 +10,7 @@ lazy_static::lazy_static! {
static ref MAP_ERR: RwLock<Option<fn(err: String)-> io::Error>> = Default::default(); static ref MAP_ERR: RwLock<Option<fn(err: String)-> io::Error>> = Default::default();
} }
pub fn detect_cursor_embeded() { pub fn detect_cursor_embedded() {
if unsafe { IS_CURSOR_EMBEDDED } { if unsafe { IS_CURSOR_EMBEDDED } {
use crate::common::wayland::pipewire::get_available_cursor_modes; use crate::common::wayland::pipewire::get_available_cursor_modes;
match get_available_cursor_modes() { match get_available_cursor_modes() {

View File

@ -1,6 +1,6 @@
use super::*; use super::*;
use hbb_common::{allow_err, platform::linux::DISTRO}; use hbb_common::{allow_err, platform::linux::DISTRO};
use scrap::{detect_cursor_embeded, set_map_err, Capturer, Display, Frame, TraitCapturer}; use scrap::{detect_cursor_embedded, set_map_err, Capturer, Display, Frame, TraitCapturer};
use std::io; use std::io;
use super::video_service::{ use super::video_service::{
@ -13,7 +13,7 @@ lazy_static::lazy_static! {
} }
pub fn init() { pub fn init() {
detect_cursor_embeded(); detect_cursor_embedded();
set_map_err(map_err_scrap); set_map_err(map_err_scrap);
} }