userspace: Add missing alpha channels

This commit is contained in:
2024-09-12 20:53:45 +03:00
parent 163961df4f
commit 7f25ddc229
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ void randomize_color(BAN::UniqPtr<LibGUI::Window>& window)
uint32_t color = ((rand() % 255) << 16) | ((rand() % 255) << 8) | ((rand() % 255) << 0);
for (uint32_t y = 0; y < window->height(); y++)
for (uint32_t x = 0; x < window->width(); x++)
window->set_pixel(x, y, color);
window->set_pixel(x, y, 0xFF000000 | color);
window->invalidate();
}