Skip to content

Commit

Permalink
Force tiny-skia backend for Redox
Browse files Browse the repository at this point in the history
  • Loading branch information
shartrec committed Jul 10, 2024
1 parent ed7e9e5 commit ca112a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ca112a0

Please sign in to comment.