From 999176c19baf6087293d12c8564613361a696af6 Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Thu, 16 Jul 2026 20:15:01 +0300 Subject: [PATCH] tilemap and lightmap resize fix --- src/lightmap.cpp | 2 +- src/tilemap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lightmap.cpp b/src/lightmap.cpp index e18ce21..457cf1d 100644 --- a/src/lightmap.cpp +++ b/src/lightmap.cpp @@ -67,7 +67,7 @@ struct LightMapPrivate{ updateSrcRectCon(); prepareCon = shState->graphicsSignals.prepareDraw.Connect(*this, &LightMapPrivate::prepare); - bitmapUpdateConnection = shState->windowSignals.resized.Connect([&](int w, int h){ + bitmapUpdateConnection = shState->graphicsSignals.resized.Connect([&](int w, int h){ shState->rubyDispatcher().invoke([&, w, h]{ bitmap = new Bitmap(w, h); bitmap->ensureNonMega(); diff --git a/src/tilemap.cpp b/src/tilemap.cpp index d44676d..8341239 100644 --- a/src/tilemap.cpp +++ b/src/tilemap.cpp @@ -363,7 +363,7 @@ struct TilemapPrivate { elem.zlayers[i] = new ZLayer(this, viewport); prepareCon = shState->graphicsSignals.prepareDraw.Connect(*this, &TilemapPrivate::prepare); - viewpUpdateConnection = shState->windowSignals.resized.Connect([&](int w, int h){ + viewpUpdateConnection = shState->graphicsSignals.resized.Connect([&](int w, int h){ shState->rubyDispatcher().invoke([&, w, h]{ if (this->viewport->isDisposed()){ Debug() << "Warning: resize updating of disposed tilemap, disconnecting";