tilemap and lightmap resize fix

This commit is contained in:
Issac332 2026-07-16 20:15:01 +03:00
parent 24bc4c644e
commit 999176c19b
2 changed files with 2 additions and 2 deletions

View file

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

View file

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