mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
AK: Make Bitmap constructors public to allow make<Bitmap>()
I don't love this, but I also don't love the Bitmap class in general.
This commit is contained in:
parent
3d4ed7f38d
commit
9e7560fae9
1 changed files with 2 additions and 1 deletions
|
@ -131,7 +131,6 @@ public:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
explicit Bitmap()
|
explicit Bitmap()
|
||||||
: m_size(0)
|
: m_size(0)
|
||||||
, m_owned(true)
|
, m_owned(true)
|
||||||
|
@ -155,6 +154,8 @@ private:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
int size_in_bytes() const { return ceil_div(m_size, 8); }
|
int size_in_bytes() const { return ceil_div(m_size, 8); }
|
||||||
|
|
||||||
u8* m_data { nullptr };
|
u8* m_data { nullptr };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue