1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

fix puzzle map never open

This commit is contained in:
kdmcser
2025-05-01 23:26:50 +08:00
parent 5433b07e5f
commit 935476a86a
3 changed files with 8 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ BasicMapView::BasicMapView(const Point & offset, const Point & dimensions)
: model(createModel(dimensions))
, tilesCache(new MapViewCache(model))
, controller(new MapViewController(model, tilesCache))
, needFullUpdate(false)
{
OBJECT_CONSTRUCTION;
pos += offset;
@@ -76,7 +77,7 @@ void BasicMapView::tick(uint32_t msPassed)
void BasicMapView::show(Canvas & to)
{
CanvasClipRectGuard guard(to, pos);
render(to, false);
render(to, needFullUpdate);
controller->afterRender();
}