summary refs log tree commit diff
path: root/src/GFX/Image/PPMParser.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-24 00:40:08 +0200
committerMel <einebeere@gmail.com>2022-10-24 00:40:08 +0200
commitdc2af6a6fb7ae3cf1b9f917058889329d4652491 (patch)
tree49030d19e9e403336be0de048681b4bbd921218d /src/GFX/Image/PPMParser.cpp
parentad84d0686f1d7f72e86b55cdadd8272f225f776d (diff)
downloadmeowcraft-dc2af6a6fb7ae3cf1b9f917058889329d4652491.tar.zst
meowcraft-dc2af6a6fb7ae3cf1b9f917058889329d4652491.zip
Image viewer utility
Diffstat (limited to 'src/GFX/Image/PPMParser.cpp')
-rw-r--r--src/GFX/Image/PPMParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GFX/Image/PPMParser.cpp b/src/GFX/Image/PPMParser.cpp
index b809ef1..31be0ab 100644
--- a/src/GFX/Image/PPMParser.cpp
+++ b/src/GFX/Image/PPMParser.cpp
@@ -17,7 +17,7 @@ RawImage PPMParser::parse() {
 
     auto pixel_count = header.width * header.height;
 
-    RawImage image(pixel_count, header.width, header.height, 3);
+    RawImage image(header.width, header.height, 3);
     for (uint64_t pixel_index = 0; pixel_index < pixel_count; pixel_index++) {
         RawImage::Pixel pixel = parse_pixel(header.max_color);
         image.add(pixel);