mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:27:34 +00:00
Flush the old and new cursor rects in a single rect.
This commit is contained in:
parent
8e96cba7ef
commit
9053027dc0
1 changed files with 1 additions and 2 deletions
|
@ -306,8 +306,7 @@ void WindowManager::redraw_cursor()
|
||||||
auto cursor_location = m_framebuffer.cursor_location();
|
auto cursor_location = m_framebuffer.cursor_location();
|
||||||
Painter painter(*m_front_bitmap);
|
Painter painter(*m_front_bitmap);
|
||||||
Rect cursor_rect { cursor_location.x(), cursor_location.y(), (int)m_cursor_bitmap_inner->width(), (int)m_cursor_bitmap_inner->height() };
|
Rect cursor_rect { cursor_location.x(), cursor_location.y(), (int)m_cursor_bitmap_inner->width(), (int)m_cursor_bitmap_inner->height() };
|
||||||
flush(m_last_cursor_rect);
|
flush(m_last_cursor_rect.united(cursor_rect));
|
||||||
flush(cursor_rect);
|
|
||||||
Color inner_color = Color::White;
|
Color inner_color = Color::White;
|
||||||
Color outer_color = Color::Black;
|
Color outer_color = Color::Black;
|
||||||
if (m_framebuffer.left_mouse_button_pressed())
|
if (m_framebuffer.left_mouse_button_pressed())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue