diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-10-06 22:43:33 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-10-06 22:43:33 +0200 |
| commit | c4b4a841d68f4bde69f4e1472b7d8fa24f96a376 (patch) | |
| tree | 5fb212b07e4941e164d2ea66b201158bee798ddc /tests | |
| parent | 263d63aa5678276532776c129829b6a77f56bcad (diff) | |
png: Move metadata.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/image/test_core_image.odin | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/core/image/test_core_image.odin b/tests/core/image/test_core_image.odin index 7752cf7dc..155b69298 100644 --- a/tests/core/image/test_core_image.odin +++ b/tests/core/image/test_core_image.odin @@ -1504,10 +1504,8 @@ run_png_suite :: proc(t: ^testing.T, suite: []PNG_Test) -> (subtotal: int) { passed &= test.hash == hash if .return_metadata in test.options { - v: ^png.Info - if img.metadata_ptr != nil && img.metadata_type == png.Info { - v = (^png.Info)(img.metadata_ptr) + if v, ok := img.metadata.(^image.PNG_Info); ok { for c in v.chunks { #partial switch(c.header.type) { case .gAMA: |