diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-18 12:19:23 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-18 14:01:34 +0300 |
| commit | 66202992c9536c0e01395813f9a611aa111e5ded (patch) | |
| tree | f76155ad6b1c49c7d409db776441d4cf4ae25f15 /src/layout | |
| parent | eb59b10050d5806dd6dd42cfb9e93e1b65a24d4f (diff) | |
| download | niri-66202992c9536c0e01395813f9a611aa111e5ded.tar.gz niri-66202992c9536c0e01395813f9a611aa111e5ded.tar.bz2 niri-66202992c9536c0e01395813f9a611aa111e5ded.zip | |
Fix blurry rounded corners on high scales
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/closing_window.rs | 1 | ||||
| -rw-r--r-- | src/layout/focus_ring.rs | 2 | ||||
| -rw-r--r-- | src/layout/opening_window.rs | 1 | ||||
| -rw-r--r-- | src/layout/tile.rs | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/closing_window.rs b/src/layout/closing_window.rs index 06b5927c..cbaf29be 100644 --- a/src/layout/closing_window.rs +++ b/src/layout/closing_window.rs @@ -164,6 +164,7 @@ impl ClosingWindow { ProgramType::Close, view_rect.size, None, + scale.x as f32, 1., vec![ mat3_uniform("niri_input_to_geo", input_to_geo), diff --git a/src/layout/focus_ring.rs b/src/layout/focus_ring.rs index e7c0388b..97a1b75a 100644 --- a/src/layout/focus_ring.rs +++ b/src/layout/focus_ring.rs @@ -184,6 +184,7 @@ impl FocusRing { Rectangle::from_loc_and_size(full_rect.loc - loc, full_rect.size), rounded_corner_border_width, radius, + scale as f32, ); } } else { @@ -203,6 +204,7 @@ impl FocusRing { Rectangle::from_loc_and_size(full_rect.loc - self.locations[0], full_rect.size), rounded_corner_border_width, radius, + scale as f32, ); } diff --git a/src/layout/opening_window.rs b/src/layout/opening_window.rs index d265c463..90e50581 100644 --- a/src/layout/opening_window.rs +++ b/src/layout/opening_window.rs @@ -106,6 +106,7 @@ impl OpenAnimation { ProgramType::Open, area.size, None, + scale.x as f32, 1., vec