mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
LibGfx+LibGUI: Make Gfx::ShareableBitmap transmit indexed palettes
This commit is contained in:
parent
b5d98c0945
commit
8a61aba1e5
5 changed files with 49 additions and 15 deletions
|
@ -728,7 +728,7 @@ OwnPtr<WindowBackingStore> Window::create_backing_store(const Gfx::IntSize& size
|
|||
return {};
|
||||
}
|
||||
|
||||
auto bitmap = Gfx::Bitmap::create_with_anon_fd(format, anon_fd, size, Gfx::Bitmap::ShouldCloseAnonymousFile::No);
|
||||
auto bitmap = Gfx::Bitmap::create_with_anon_fd(format, anon_fd, size, {}, Gfx::Bitmap::ShouldCloseAnonymousFile::No);
|
||||
if (!bitmap)
|
||||
return {};
|
||||
return make<WindowBackingStore>(bitmap.release_nonnull());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue