Use euclid::Scale to convert between physical and logical coord spaces

This commit is contained in:
meehl committed 2026-08-24 23:57:19 +02:00
1 parent 8ba72fd7df
commit 8d17f8e64f
12 files changed
+70 -155

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ use std::sync::Arc;
use winit::window::Window;
use crate::{
dpi::{PhysicalPoint, PhysicalSize},
dpi::{PhysicalPoint, PhysicalSize, ScaleFactor},
draw_commands::DrawCommand,
installer::Installer,
pob::PathOfBuilding,
@@ -55,7 +55,7 @@ pub struct StageFrameOutput {
pub draw_commands: Vec<DrawCommand>,
pub can_elide: bool,
pub request_redraw: bool,
pub scale_factor: f32,
pub scale_factor: ScaleFactor<f32>,
}
pub enum ActiveStage {