mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Make BorderRenderElement scale-agnostic
This commit is contained in:
@@ -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.],
|
||||
|
||||
Reference in New Issue
Block a user