summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/PNGWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/PNGWriter.cpp')
-rw-r--r--Userland/Libraries/LibGfx/PNGWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/PNGWriter.cpp b/Userland/Libraries/LibGfx/PNGWriter.cpp
index 79ad181994..950815cfb6 100644
--- a/Userland/Libraries/LibGfx/PNGWriter.cpp
+++ b/Userland/Libraries/LibGfx/PNGWriter.cpp
@@ -112,8 +112,7 @@ void PNGWriter::add_chunk(PNGChunk& png_chunk)
void PNGWriter::add_png_header()
{
- const u8 png_header[8] = { 0x89, 'P', 'N', 'G', 13, 10, 26, 10 };
- m_data.append(png_header, sizeof(png_header));
+ m_data.append(PNG::header.data(), PNG::header.size());
}
void PNGWriter::add_IHDR_chunk(u32 width, u32 height, u8 bit_depth, PNG::ColorType color_type, u8 compression_method, u8 filter_method, u8 interlace_method)