Make BorderRenderElement scale-agnostic

This commit is contained in:
Ivan Molodetskikh
2024-05-03 21:49:47 +04:00
parent 8ab50f9d1c
commit 74996a2416
6 changed files with 12 additions and 29 deletions
@@ -7,7 +7,7 @@ use niri::render_helpers::border::BorderRenderElement;
use niri_config::CornerRadius;
use smithay::backend::renderer::element::RenderElement;
use smithay::backend::renderer::gles::GlesRenderer;
use smithay::utils::{Logical, Physical, Rectangle, Scale, Size};
use smithay::utils::{Logical, Physical, Rectangle, Size};
use super::TestCase;
@@ -62,7 +62,6 @@ impl TestCase for GradientAngle {
let area = Rectangle::from_loc_and_size((a, b), size);
[BorderRenderElement::new(
Scale::from(1.),
area,
area,
[1., 0., 0., 1.],
@@ -99,7 +99,6 @@ impl TestCase for GradientArea {
rv.extend(
[BorderRenderElement::new(
Scale::from(1.),
area,
g_area,
[1., 0., 0., 1.],