diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index 5db69389e..383984c31 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -358,6 +358,12 @@ bool Window::setFullscreen(bool fullscreen, Window::FullscreenType fstype) { SDL_GL_MakeCurrent(window, context); updateAttributes(newattribs); + + // Update the viewport size now instead of waiting for event polling. + graphics::Graphics *gfx = (graphics::Graphics *) Module::findInstance("love.graphics."); + if (gfx) + gfx->setViewportSize(curMode.width, curMode.height); + return true; } diff --git a/src/scripts/boot.lua b/src/scripts/boot.lua index 2055d31a2..aef649310 100644 --- a/src/scripts/boot.lua +++ b/src/scripts/boot.lua @@ -278,7 +278,6 @@ function love.init() -- will NOT make it load, see below. local c = { title = "Untitled", - author = "Unnamed", version = love._version, window = { width = 800, diff --git a/src/scripts/boot.lua.h b/src/scripts/boot.lua.h index f759e82e8..c7a5d3a48 100644 --- a/src/scripts/boot.lua.h +++ b/src/scripts/boot.lua.h @@ -504,8 +504,6 @@ const unsigned char boot_lua[] = 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x55, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x22, 0x2c, 0x0a, - 0x09, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x20, 0x3d, 0x20, 0x22, 0x55, 0x6e, 0x6e, 0x61, 0x6d, 0x65, - 0x64, 0x22, 0x2c, 0x0a, 0x09, 0x09, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2c, 0x0a, 0x09, 0x09, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x20, 0x3d, 0x20, 0x7b, 0x0a,