From ca112a00bed7efe4b44fc1dae28c583d1387c689 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Wed, 10 Jul 2024 16:34:27 +1000 Subject: [PATCH] Force tiny-skia backend for Redox --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c03a112..60b41ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,9 +42,10 @@ pub(crate) mod conversions; /// Calculate. fn main() -> iced::Result { - // Todo Get rid of this when we can - // Force tiny-skia backend - // std::env::set_var("ICED_BACKEND", "tiny-skia"); + #[cfg(target_os = "redox")] + { + std::env::set_var("ICED_BACKEND", "tiny-skia"); + } init_logger(); info!("Calculator started");