mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
commit
1ab18788e6
@ -86,7 +86,9 @@ void UIWidget::drawText(const Rect& screenCoords)
|
||||
return;
|
||||
|
||||
if(screenCoords != m_textCachedScreenCoords || m_textMustRecache) {
|
||||
Rect coords = Rect(screenCoords.topLeft() + m_textOffset, screenCoords.bottomRight());
|
||||
Rect coords = Rect(screenCoords.topLeft(), screenCoords.bottomRight());
|
||||
coords.translate(m_textOffset);
|
||||
|
||||
m_textMustRecache = false;
|
||||
m_textCachedScreenCoords = coords;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user