LibGfx+LibGUI: Make Gfx::ShareableBitmap transmit indexed palettes

This commit is contained in:
Andreas Kling 2021-01-16 23:57:57 +01:00
commit 8a61aba1e5
Notes: sideshowbarker 2024-07-18 23:09:37 +09:00
5 changed files with 49 additions and 15 deletions

View file

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