--- a/src/webview/mod.rs 2026-05-11 22:00:57.261117297 -0700 +++ b/src/webview/mod.rs 2026-05-11 22:09:44.824475918 -0700 @@ -56,6 +56,17 @@ let args = Args::new(); + + // Pass --force-device-scale-factor to CEF if the environment variable is set. + // This is the standard Chromium flag for HiDPI display scaling. + if let Ok(scale) = std::env::var("STREMIO_FORCE_DEVICE_SCALE_FACTOR") { + if let Some(cmd) = args.as_cmd_line() { + cmd.append_switch_with_value( + Some(&CefString::from("force-device-scale-factor")), + Some(&CefString::from(scale.as_str())), + ); + } + } let (sender, receiver) = unbounded::(); SENDER.get_or_init(|| sender);