Skip to content

Commit

Permalink
Assign default values to display.width and display.height
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Apr 16, 2018
1 parent a7f8eee commit 2068103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orthographic/camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ M.PROJECTOR.DEFAULT = hash("DEFAULT")
M.PROJECTOR.FIXED_AUTO = hash("FIXED_AUTO")
M.PROJECTOR.FIXED_ZOOM = hash("FIXED_ZOOM")

local DISPLAY_WIDTH = tonumber(sys.get_config("display.width"))
local DISPLAY_HEIGHT = tonumber(sys.get_config("display.height"))
local DISPLAY_WIDTH = tonumber(sys.get_config("display.width")) or 960
local DISPLAY_HEIGHT = tonumber(sys.get_config("display.height")) or 640

local WINDOW_WIDTH = DISPLAY_WIDTH
local WINDOW_HEIGHT = DISPLAY_HEIGHT
Expand Down

0 comments on commit 2068103

Please sign in to comment.