1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

WindowServer: Fix typo in drag&drop cursor rect computation :^) (#863)

This commit is contained in:
Kevin Murphy 2019-12-09 00:23:39 -08:00 committed by Andreas Kling
parent e339c2bce8
commit 8621304447

View file

@ -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);