Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions push.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ function push:setupScreen(WWIDTH, WHEIGHT, RWIDTH, RHEIGHT, settings)

self._WWIDTH, self._WHEIGHT = WWIDTH, WHEIGHT
self._RWIDTH, self._RHEIGHT = RWIDTH, RHEIGHT

local windowWidth, windowHeight = love.window.getDesktopDimensions()

if self._RWIDTH == 0 then
self._RWIDTH = windowWidth
end
if self._RHEIGHT == 0 then
self._RHEIGHT = windowHeight
end

self:applySettings(self.defaults) --set defaults first
self:applySettings(settings) --then fill with custom settings
Expand Down