summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/PNGLoader.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-26 15:51:51 +0100
committerSam Atkins <atkinssj@gmail.com>2023-01-03 10:01:09 +0000
commit23a9d62f39677bd5118e1ab2b14bd0e281ca1c60 (patch)
treef973682e868bf5cebc98c9b9c83d22c9e2e19056 /Userland/Libraries/LibGfx/PNGLoader.cpp
parentedd004fe90dc1ca19187fe7673a754281240327a (diff)
downloadserenity-23a9d62f39677bd5118e1ab2b14bd0e281ca1c60.zip
LibCompress: Rename `Compress::Zlib` to `Compress::ZlibDecompressor`
Because that's what it is, even if it mainly relies on `DeflateDecompressor` to do the heavy lifting.
Diffstat (limited to 'Userland/Libraries/LibGfx/PNGLoader.cpp')
-rw-r--r--Userland/Libraries/LibGfx/PNGLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/PNGLoader.cpp b/Userland/Libraries/LibGfx/PNGLoader.cpp
index 42a00bcbea..6c310ba03b 100644
--- a/Userland/Libraries/LibGfx/PNGLoader.cpp
+++ b/Userland/Libraries/LibGfx/PNGLoader.cpp
@@ -706,7 +706,7 @@ static ErrorOr<void> decode_png_bitmap(PNGLoadingContext& context)
if (context.color_type == PNG::ColorType::IndexedColor && context.palette_data.is_empty())
return Error::from_string_literal("PNGImageDecoderPlugin: Didn't see a PLTE chunk for a palletized image, or it was empty.");
- auto result = Compress::Zlib::decompress_all(context.compressed_data.span());
+ auto result = Compress::ZlibDecompressor::decompress_all(context.compressed_data.span());
if (!result.has_value()) {
context.state = PNGLoadingContext::State::Error;
return Error::from_string_literal("PNGImageDecoderPlugin: Decompression failed");