minor fixes

macos-click-through
keith 5 years ago
parent b7d8333e9a
commit 16a076a082

@ -20,7 +20,7 @@ use crate::INITIAL_DIMENSIONS;
#[folder = "assets/"] #[folder = "assets/"]
struct Asset; struct Asset;
#[cfg(windows)] #[cfg(target_os = "windows")]
fn windows_fix_dpi() { fn windows_fix_dpi() {
use winapi::um::winuser::SetProcessDpiAwarenessContext; use winapi::um::winuser::SetProcessDpiAwarenessContext;
use winapi::shared::windef::DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2; use winapi::shared::windef::DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2;
@ -85,9 +85,6 @@ pub fn ui_loop() {
let mut mouse_down = false; let mut mouse_down = false;
let mut mouse_pos = (0, 0); let mut mouse_pos = (0, 0);
// let mut allow_next_char = false;
// let mut next_char_modifiers = ModifiersState::empty();
let mut title = "Neovide".to_string(); let mut title = "Neovide".to_string();
let mut previous_size = LogicalSize::new(&window).unwrap(); let mut previous_size = LogicalSize::new(&window).unwrap();
let mut previous_dpis = dpis(&window).unwrap(); let mut previous_dpis = dpis(&window).unwrap();

Loading…
Cancel
Save