Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
components: clippy, rustfmt

- name: Cache cargo
uses: Swatinem/rust-cache@258712b0b7b1ddf8bddc9fc3b0faca682b2736c3 # v2
uses: Swatinem/rust-cache@f0d9c3887740aee45f6153b24b3a6b815192ec16 # v2

- name: Format
run: cargo fmt --check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

# Cache keyed per target so x86_64 and aarch64 don't overwrite each other.
- name: Cache cargo
uses: Swatinem/rust-cache@258712b0b7b1ddf8bddc9fc3b0faca682b2736c3 # v2
uses: Swatinem/rust-cache@f0d9c3887740aee45f6153b24b3a6b815192ec16 # v2
with:
key: ${{ matrix.target }}

Expand Down
84 changes: 31 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4360,7 +4360,7 @@ fn capture_screenshot(id: &str) -> Result<ViewerFrame> {
let img = image::load_from_memory(&bytes)?.to_rgba8();
let (width, height) = img.dimensions();
let mut bgra = img.into_raw();
for pixel in bgra.chunks_exact_mut(4) {
for pixel in bgra.as_chunks_mut::<4>().0 {
pixel.swap(0, 2);
}
let buffer: ImageBuffer<image::Rgba<u8>, _> =
Expand Down