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:
parent
eaf03d4ddb
commit
aff2fa4383
1 changed files with 1 additions and 1 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue