mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Correcting text offset
This commit is contained in:
parent
caae18dbce
commit
17738dfdea
@ -86,7 +86,9 @@ void UIWidget::drawText(const Rect& screenCoords)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(screenCoords != m_textCachedScreenCoords || m_textMustRecache) {
|
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_textMustRecache = false;
|
||||||
m_textCachedScreenCoords = coords;
|
m_textCachedScreenCoords = coords;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user