mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-12-23 01:25:37 +00:00
fix(ui): fix fractional scaling
This commit is contained in:
parent
6e7d045794
commit
e990138200
|
@ -15,16 +15,9 @@ use wry::{
|
||||||
|
|
||||||
use log::Level;
|
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.
|
/// 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<()> {
|
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");
|
info!("Spawning web view instance");
|
||||||
|
|
||||||
let event_loop = EventLoop::new();
|
let event_loop = EventLoop::new();
|
||||||
|
|
Loading…
Reference in a new issue