mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Improve cursor appearance
`draw_rect` renders the outline of a rectangle. `fill_rect` seems like a better option for rendering the cursor.
This commit is contained in:
parent
ca9364983c
commit
068974732f
|
|
@ -729,10 +729,9 @@ void paint_cursor_if_needed(PaintContext& context, TextPaintable const& paintabl
|
|||
1,
|
||||
fragment_rect.height()
|
||||
};
|
||||
|
||||
auto cursor_device_rect = context.rounded_device_rect(cursor_rect).to_type<int>();
|
||||
|
||||
context.display_list_recorder().draw_rect(cursor_device_rect, caret_color);
|
||||
context.display_list_recorder().fill_rect(cursor_device_rect, caret_color);
|
||||
}
|
||||
|
||||
void paint_text_decoration(PaintContext& context, TextPaintable const& paintable, PaintableFragment const& fragment)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user