From dc2af6a6fb7ae3cf1b9f917058889329d4652491 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 24 Oct 2022 00:40:08 +0200 Subject: Image viewer utility --- src/GFX/Image/RawImage.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GFX/Image/RawImage.hpp') diff --git a/src/GFX/Image/RawImage.hpp b/src/GFX/Image/RawImage.hpp index 916671b..2b10cb0 100644 --- a/src/GFX/Image/RawImage.hpp +++ b/src/GFX/Image/RawImage.hpp @@ -10,9 +10,9 @@ class RawImage { public: RawImage() : m_pixels(), m_width(0), m_height(0), m_channels(0) {}; - explicit RawImage(size_t pixel_count, uint32_t width, uint32_t height, uint8_t channels) + explicit RawImage(uint32_t width, uint32_t height, uint8_t channels) : m_pixels(), m_width(width), m_height(height), m_channels(channels) { - m_pixels.reserve(pixel_count); + m_pixels.reserve(width * height); } struct Pixel { -- cgit 1.4.1