mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix graphical artifact in hero movement animation
This commit is contained in:
@ -66,16 +66,18 @@ void BasicMapView::render(Canvas & target, bool fullUpdate)
|
||||
|
||||
void BasicMapView::show(SDL_Surface * to)
|
||||
{
|
||||
controller->update(GH.mainFPSmng->getElapsedMilliseconds());
|
||||
controller->updateBefore(GH.mainFPSmng->getElapsedMilliseconds());
|
||||
|
||||
Canvas target(to);
|
||||
CSDL_Ext::CClipRectGuard guard(to, pos);
|
||||
render(target, false);
|
||||
|
||||
controller->updateAfter(GH.mainFPSmng->getElapsedMilliseconds());
|
||||
}
|
||||
|
||||
void BasicMapView::showAll(SDL_Surface * to)
|
||||
{
|
||||
controller->update(0);
|
||||
controller->updateBefore(0);
|
||||
|
||||
Canvas target(to);
|
||||
CSDL_Ext::CClipRectGuard guard(to, pos);
|
||||
|
Reference in New Issue
Block a user