1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

WindowServer: Don't waste time pre-filling windows with background color.

There's a subsequent pass that fills whatever the backing store didn't
cover anyway, just a few lines later. This was all wasted work.
This commit is contained in:
Andreas Kling 2019-04-16 15:10:57 +02:00
parent f61549ca5f
commit 311019d8ee

View file

@ -777,7 +777,6 @@ void WSWindowManager::compose()
auto dst = window.position();
dst.move_by(dirty_rect_in_window_coordinates.location());
m_back_painter->fill_rect(window.rect(), window.background_color());
m_back_painter->blit(dst, *backing_store, dirty_rect_in_window_coordinates, window.opacity());
if (backing_store->width() < window.width()) {