mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
Fix map move pixels function
Thanks to @dalkon for this.
This commit is contained in:
parent
ed24a0735a
commit
04515ffbb8
@ -566,8 +566,8 @@ Position MapView::getPosition(const Point& point, const Size& mapSize)
|
|||||||
|
|
||||||
void MapView::move(int x, int y)
|
void MapView::move(int x, int y)
|
||||||
{
|
{
|
||||||
m_moveOffset.x = x;
|
m_moveOffset.x += x;
|
||||||
m_moveOffset.y = y;
|
m_moveOffset.y += y;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect MapView::calcFramebufferSource(const Size& destSize)
|
Rect MapView::calcFramebufferSource(const Size& destSize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user