mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 20:47:36 +00:00
SharedGraphics: Rework GraphicsBitmap::create_kernel_only() into create().
And just use mmap() to allocate the pixels.
This commit is contained in:
parent
4ea28bf0a5
commit
09aaa41e62
3 changed files with 19 additions and 24 deletions
|
@ -45,7 +45,7 @@ void WSWindow::set_rect(const Rect& rect)
|
|||
m_rect = rect;
|
||||
if (!m_backing || old_rect.size() != rect.size()) {
|
||||
if (m_menu)
|
||||
m_backing = GraphicsBitmap::create_kernel_only(m_rect.size());
|
||||
m_backing = GraphicsBitmap::create(m_rect.size());
|
||||
else if (client)
|
||||
m_backing = client->create_bitmap(m_rect.size());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue