1
0
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:
Ivan Savenko 2023-09-11 18:10:39 +03:00
parent e4aa981925
commit a5e42755be
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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);