From aff2fa4383f50271672254fa54f9c9d2511b78e2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 8 May 2019 03:28:13 +0200 Subject: [PATCH] GraphicsBitmap: size_in_bytes() was overshooting by 4x, oops! --- SharedGraphics/GraphicsBitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharedGraphics/GraphicsBitmap.h b/SharedGraphics/GraphicsBitmap.h index 69e9cc2a5f..a51565e177 100644 --- a/SharedGraphics/GraphicsBitmap.h +++ b/SharedGraphics/GraphicsBitmap.h @@ -38,7 +38,7 @@ public: void set_mmap_name(const String&); - size_t size_in_bytes() const { return m_pitch * m_size.height() * sizeof(RGBA32); } + size_t size_in_bytes() const { return m_pitch * m_size.height(); } Color palette_color(byte index) const { return Color::from_rgba(m_palette[index]); } void set_palette_color(byte index, Color color) { m_palette[index] = color.value(); }