From ea99dc2f9c68dd4642d99c75866cae0e9053f3fb Mon Sep 17 00:00:00 2001 From: ssmfd <30580719+ssmfd@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:11:20 -0300 Subject: [PATCH] Trigger love.resize when changing Switch between docked/undocked --- nest/modules/video.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nest/modules/video.lua b/nest/modules/video.lua index 25bded6..9a62cba 100644 --- a/nest/modules/video.lua +++ b/nest/modules/video.lua @@ -109,6 +109,10 @@ function video.keypressed(key) -- set the new width and height of the window local width, height = current_framebuffer:getWidth(), current_framebuffer:getHeight() love.window.updateMode(width, height, {}) + + if love.resize then + love.resize(width, height) + end end end