We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98f70f9 commit 611adadCopy full SHA for 611adad
snx-rs-gui/src/assets.rs
@@ -5,7 +5,7 @@ fn png_to_argb(data: &[u8]) -> anyhow::Result<Vec<u8>> {
5
let mut img = png.to_rgba8();
6
7
for image::Rgba(pixel) in img.pixels_mut() {
8
- *pixel = u32::from_be_bytes(*pixel).rotate_right(8).to_be_bytes();
+ pixel.rotate_right(1);
9
}
10
11
Ok(img.into_raw())
0 commit comments