mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Removed unnecessary full screen redraws in swipe mode; (#381)
This commit is contained in:
parent
ae13123129
commit
1ee4e232fa
@ -1707,12 +1707,10 @@ void CPlayerInterface::update()
|
|||||||
GH.updateTime();
|
GH.updateTime();
|
||||||
GH.handleEvents();
|
GH.handleEvents();
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
if (!adventureInt || adventureInt->isActive())
|
||||||
if (adventureInt && !adventureInt->isActive() && (adventureInt->swipeTargetPosition.x >= 0 || adventureInt->swipeTargetPosition.y >= 0))
|
GH.simpleRedraw();
|
||||||
#else // !VCMI_ANDROID
|
else if((adventureInt->swipeEnabled && adventureInt->swipeMovementRequested) || adventureInt->scrollingDir)
|
||||||
if (adventureInt && !adventureInt->isActive() && adventureInt->scrollingDir) //player forces map scrolling though interface is disabled
|
GH.totalRedraw(); //player forces map scrolling though interface is disabled
|
||||||
#endif // !VCMI_ANDROID
|
|
||||||
GH.totalRedraw();
|
|
||||||
else
|
else
|
||||||
GH.simpleRedraw();
|
GH.simpleRedraw();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user