From e99013820080fcef057dd52c366581564b586914 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 15 Oct 2021 14:37:18 -0600 Subject: [PATCH] fix(ui): fix fractional scaling --- src/frontend/ui/mod.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/frontend/ui/mod.rs b/src/frontend/ui/mod.rs index 786fd3f..c1968f1 100644 --- a/src/frontend/ui/mod.rs +++ b/src/frontend/ui/mod.rs @@ -15,16 +15,9 @@ use wry::{ use log::Level; -#[derive(Deserialize, Debug)] -enum CallbackType { - SelectInstallDir { callback_name: String }, - Log { msg: String, kind: String }, - Test {}, -} - /// Starts the main web UI. Will return when UI is closed. pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) -> Result<()> { - let size = if is_launcher { (600, 300) } else { (1024, 600) }; + let size = if is_launcher { (600.0, 300.0) } else { (1024.0, 600.0) }; info!("Spawning web view instance"); let event_loop = EventLoop::new();