srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/decoration.rs
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2026-08-30 21:15:00 +0200
committersrdusr <[email protected]>2026-08-30 21:15:00 +0200
commit9a7f30050f8efc52340e698031a7a55a105e72c4 (patch)
tree16e9becf63a51e706034bcd014320cdaafbe8b52 /crates/wayland/src/decoration.rs
parentf2f9ed1b3f9c49b323ce591eb72a406058d324a4 (diff)
downloadsrdwm-main.tar.gz
srdwm-main.zip
Use as_chunks for fixed-size pixel iterationHEADmain
Diffstat (limited to 'crates/wayland/src/decoration.rs')
-rw-r--r--crates/wayland/src/decoration.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/wayland/src/decoration.rs b/crates/wayland/src/decoration.rs
index 21002f7..1e4f1e5 100644
--- a/crates/wayland/src/decoration.rs
+++ b/crates/wayland/src/decoration.rs
@@ -235,7 +235,7 @@ pub fn render_snap_flyout(columns: u32, cell_width: u32, cell_height: u32, label
let mut buf = vec![0u8; width * height * 4];
let bg_px = rgb_to_bgra(bg, 255);
- for px in buf.chunks_exact_mut(4) {
+ for px in buf.as_chunks_mut::<4>().0 {
px.copy_from_slice(&bg_px);
}