From c9f429f2eec30944592014fe8722707c0c181f72 Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Sun, 10 Mar 2024 20:34:20 +0100 Subject: [PATCH] Change CI workflow version --- .github/workflows/rust.yml | 4 ++-- src/render/extract.rs | 2 +- src/render/unified/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 645ee232..591bb1d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.75.0 + toolchain: 1.76.0 components: clippy, rustfmt - uses: actions/checkout@v3 - uses: actions/cache@v3 @@ -31,7 +31,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-build-1.75.0-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-build-1.76.0-${{ hashFiles('**/Cargo.toml') }} - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev if: runner.os == 'linux' diff --git a/src/render/extract.rs b/src/render/extract.rs index f1f67dfa..b0e7de47 100644 --- a/src/render/extract.rs +++ b/src/render/extract.rs @@ -62,7 +62,7 @@ pub fn extract( let dpi = if let Ok(camera) = cameras.get(context.camera_entity) { if let bevy::render::camera::RenderTarget::Window(WindowRef::Primary) = &camera.target { if let Ok(window) = primary_window.get_single() { - window.scale_factor() as f32 + window.scale_factor() } else { 1.0 } diff --git a/src/render/unified/mod.rs b/src/render/unified/mod.rs index 9762ebe2..a4939631 100644 --- a/src/render/unified/mod.rs +++ b/src/render/unified/mod.rs @@ -122,7 +122,7 @@ pub fn extract_baseline( window_size: Extract>, ) { let dpi = if let Ok(window) = windows.get_single() { - window.scale_factor() as f32 + window.scale_factor() } else { 1.0 };