Skip to content

Commit

Permalink
Merge branch 'working'
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed May 18, 2021
2 parents 5b3ce83 + 334263e commit 569ddb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to PNG Pong will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://jeronlau.tk/semver/).

## 0.8.2 - 2021-05-18
### Fixed
- Palette PNGs returning empty palette when compiled in release mode.

## 0.8.1 - 2021-05-16
### Fixed
- Not being able to load palette PNGs without a transparency chunk.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[package]
name = "png_pong"
version = "0.8.1"
version = "0.8.2"
authors = ["Jeron Aldaron Lau <jeronlau@plopgrizzly.com>"]
license = "Apache-2.0 OR Zlib"

Expand Down
3 changes: 2 additions & 1 deletion src/decode/steps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ pub(crate) fn decode(
};
let mut palette = Palette::new(palette_slice.len());
for (i, color) in palette_slice.iter().enumerate() {
debug_assert_eq!(i, palette.set_entry(*color).unwrap());
let j = palette.set_entry(*color).unwrap();
debug_assert_eq!(i, j);
}
debug_assert_eq!(palette_slice.len(), palette.len());
PngRaster::Palette(
Expand Down

0 comments on commit 569ddb2

Please sign in to comment.