mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Correctly redraw map in world view mode
This commit is contained in:
parent
e4aa981925
commit
a5e42755be
@ -18,6 +18,7 @@
|
||||
#include "../render/CAnimation.h"
|
||||
#include "../render/Canvas.h"
|
||||
#include "../render/IImage.h"
|
||||
#include "../render/Colors.h"
|
||||
|
||||
#include "../../CCallback.h"
|
||||
|
||||
@ -246,7 +247,6 @@ uint8_t MapRendererRoad::checksum(IMapRendererContext & context, const int3 & co
|
||||
|
||||
MapRendererBorder::MapRendererBorder()
|
||||
{
|
||||
emptyFill = std::make_unique<Canvas>(Point(32,32));
|
||||
animation = std::make_unique<CAnimation>("EDG");
|
||||
animation->preload();
|
||||
}
|
||||
@ -298,7 +298,7 @@ void MapRendererBorder::renderTile(IMapRendererContext & context, Canvas & targe
|
||||
}
|
||||
else
|
||||
{
|
||||
target.draw(*emptyFill, Point(0,0));
|
||||
target.drawColor(Rect(0,0,32,32), Colors::BLACK);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,6 @@ public:
|
||||
class MapRendererBorder
|
||||
{
|
||||
std::unique_ptr<CAnimation> animation;
|
||||
std::unique_ptr<Canvas> emptyFill;
|
||||
|
||||
size_t getIndexForTile(IMapRendererContext & context, const int3 & coordinates);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user