simple remove some warns
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
205798b611
commit
1bc9b8c583
@ -110,12 +110,6 @@ pub fn get_license() -> String {
|
|||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
#[cfg(target_os = "windows")]
|
|
||||||
pub fn get_option_opt(key: &str) -> Option<String> {
|
|
||||||
OPTIONS.lock().unwrap().get(key).map(|x| x.clone())
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_option(key: String) -> String {
|
pub fn get_option(key: String) -> String {
|
||||||
get_option_(&key)
|
get_option_(&key)
|
||||||
|
@ -911,16 +911,16 @@ impl<T: InvokeUiSession> Session<T> {
|
|||||||
pub fn change_resolution(&self, display: i32, width: i32, height: i32) {
|
pub fn change_resolution(&self, display: i32, width: i32, height: i32) {
|
||||||
*self.last_change_display.lock().unwrap() =
|
*self.last_change_display.lock().unwrap() =
|
||||||
ChangeDisplayRecord::new(display, width, height);
|
ChangeDisplayRecord::new(display, width, height);
|
||||||
self.do_change_resolution(display, width, height);
|
self.do_change_resolution(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn try_change_init_resolution(&self, display: i32) {
|
fn try_change_init_resolution(&self, display: i32) {
|
||||||
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
|
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
|
||||||
self.do_change_resolution(display, w, h);
|
self.do_change_resolution(w, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn do_change_resolution(&self, display: i32, width: i32, height: i32) {
|
fn do_change_resolution(&self, width: i32, height: i32) {
|
||||||
let mut misc = Misc::new();
|
let mut misc = Misc::new();
|
||||||
misc.set_change_resolution(Resolution {
|
misc.set_change_resolution(Resolution {
|
||||||
width,
|
width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user