aboutsummaryrefslogtreecommitdiff
path: root/niri-visual-tests/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-15 09:10:50 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-17 11:31:34 +0300
commit7e253d26874e090e59e6e69f0d07b9b492534371 (patch)
tree2af07a4ae05a5126f40b46d97e87d4e382302fe9 /niri-visual-tests/src
parent15ba2ab30033bcfa1d868d5db64e83989734cad0 (diff)
downloadniri-7e253d26874e090e59e6e69f0d07b9b492534371.tar.gz
niri-7e253d26874e090e59e6e69f0d07b9b492534371.tar.bz2
niri-7e253d26874e090e59e6e69f0d07b9b492534371.zip
layout: Don't pass scale to render unnecessarily
These parts of the layout already know their scale.
Diffstat (limited to 'niri-visual-tests/src')
-rw-r--r--niri-visual-tests/src/cases/tile.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/niri-visual-tests/src/cases/tile.rs b/niri-visual-tests/src/cases/tile.rs
index 22f3eb71..8ab67654 100644
--- a/niri-visual-tests/src/cases/tile.rs
+++ b/niri-visual-tests/src/cases/tile.rs
@@ -6,7 +6,7 @@ use niri::render_helpers::RenderTarget;
use niri_config::{Color, FloatOrInt};
use smithay::backend::renderer::element::RenderElement;
use smithay::backend::renderer::gles::GlesRenderer;
-use smithay::utils::{Physical, Point, Rectangle, Scale, Size};
+use smithay::utils::{Physical, Point, Rectangle, Size};
use super::{Args, TestCase};
use crate::test_window::TestWindow;
@@ -117,13 +117,7 @@ impl TestCase for Tile {
Rectangle::new(Point::from((-location.x, -location.y)), size.to_logical(1.)),
);
self.tile
- .render(
- renderer,
- location,
- Scale::from(1.),
- true,
- RenderTarget::Output,
- )
+ .render(renderer, location, true, RenderTarget::Output)
.map(|elem| Box::new(elem) as _)
.collect()
}