Use euclid::Scale to convert between physical and logical coord spaces
This commit is contained in:
1 parent
8ba72fd7df
commit
8d17f8e64f
12 files changed
+70
-155
No files matched your search
+2
-2
@@ -1,7 +1,7 @@
|
||||
use ahash::HashMap;
|
||||
|
||||
use crate::{
|
||||
dpi::LogicalRect,
|
||||
dpi::{LogicalRect, ScaleFactor},
|
||||
draw_commands::DrawCommand,
|
||||
renderer::{
|
||||
Batch, RenderJob, Vertex,
|
||||
@@ -68,7 +68,7 @@ impl BatchBuilder {
|
||||
pub fn build_render_job(
|
||||
commands: &[DrawCommand],
|
||||
textures_delta: TexturesDelta,
|
||||
scale_factor: f32,
|
||||
scale_factor: ScaleFactor<f32>,
|
||||
max_slots: u32,
|
||||
) -> RenderJob {
|
||||
profiling::scope!("build_render_job");
|
||||
|
||||
Reference in new issue
Block a user