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