WindowServer: When "flash flush" enabled, flash transparent rects green

This commit is contained in:
Andreas Kling 2021-07-08 01:22:21 +02:00
parent 32654b340a
commit f48e581eac
Notes: sideshowbarker 2024-07-18 10:07:05 +09:00

View File

@ -593,6 +593,8 @@ void Compositor::flush(Screen& screen)
if (m_flash_flush) {
for (auto& rect : screen_data.m_flush_rects.rects())
screen_data.m_front_painter->fill_rect(rect, Color::Yellow);
for (auto& rect : screen_data.m_flush_transparent_rects.rects())
screen_data.m_front_painter->fill_rect(rect, Color::Green);
usleep(10000);
}