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.handleEvents();
|
||||
|
||||
#ifdef VCMI_ANDROID
|
||||
if (adventureInt && !adventureInt->isActive() && (adventureInt->swipeTargetPosition.x >= 0 || adventureInt->swipeTargetPosition.y >= 0))
|
||||
#else // !VCMI_ANDROID
|
||||
if (adventureInt && !adventureInt->isActive() && adventureInt->scrollingDir) //player forces map scrolling though interface is disabled
|
||||
#endif // !VCMI_ANDROID
|
||||
GH.totalRedraw();
|
||||
if (!adventureInt || adventureInt->isActive())
|
||||
GH.simpleRedraw();
|
||||
else if((adventureInt->swipeEnabled && adventureInt->swipeMovementRequested) || adventureInt->scrollingDir)
|
||||
GH.totalRedraw(); //player forces map scrolling though interface is disabled
|
||||
else
|
||||
GH.simpleRedraw();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user