mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
WindowServer: Fix typo in drag&drop cursor rect computation :^) (#863)
This commit is contained in:
parent
e339c2bce8
commit
8621304447
1 changed files with 1 additions and 1 deletions
|
@ -1204,7 +1204,7 @@ void WSWindowManager::end_dnd_drag()
|
|||
Rect WSWindowManager::dnd_rect() const
|
||||
{
|
||||
int bitmap_width = m_dnd_bitmap ? m_dnd_bitmap->width() : 0;
|
||||
int bitmap_height = m_dnd_bitmap ? m_dnd_bitmap->width() : 0;
|
||||
int bitmap_height = m_dnd_bitmap ? m_dnd_bitmap->height() : 0;
|
||||
int width = font().width(m_dnd_text) + bitmap_width;
|
||||
int height = max((int)font().glyph_height(), bitmap_height);
|
||||
auto location = WSCompositor::the().current_cursor_rect().center().translated(8, 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue