1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

GraphicsBitmap: size_in_bytes() was overshooting by 4x, oops!

This commit is contained in:
Andreas Kling 2019-05-08 03:28:13 +02:00
parent eaf03d4ddb
commit aff2fa4383

View file

@ -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(); }