src/core: fix a bug in windows size

This commit is contained in:
Kazhnuz 2019-01-28 09:22:23 +01:00
parent 6fb2f92f49
commit 4bf78e9c01

View file

@ -46,7 +46,7 @@ function ScreenManager:applySettings()
flags.vsync = self.data.vsync flags.vsync = self.data.vsync
flags.borderless = (self.data.border == false) flags.borderless = (self.data.border == false)
love.window.setMode(SCREEN_WIDTH * self.data.resolution, SCREEN_WIDTH * self.data.resolution, flags) love.window.setMode(SCREEN_WIDTH * self.data.resolution, SCREEN_HEIGHT * self.data.resolution, flags)
love.window.setFullscreen( self.data.fullscreen ) love.window.setFullscreen( self.data.fullscreen )
local width, height = love.window.getMode() local width, height = love.window.getMode()