LibGUI: Add background color for windows

This is used when resizing a window to fill the empty space
This commit is contained in:
2025-05-05 03:12:31 +03:00
parent c0181820a9
commit fcfadd7c74
2 changed files with 6 additions and 1 deletions

View File

@@ -355,7 +355,7 @@ namespace LibGUI
m_framebuffer_smo = nullptr;
BAN::Vector<uint32_t> framebuffer;
TRY(framebuffer.resize(event.width * event.height, 0xFFFFFFFF));
TRY(framebuffer.resize(event.width * event.height, m_bg_color));
void* framebuffer_addr = smo_map(event.smo_key);
if (framebuffer_addr == nullptr)