/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to zoetrope/core/app.lua

  • Committer: Josh C
  • Date: 2014-07-03 14:43:25 UTC
  • Revision ID: josh@9ix.org-20140703144325-799ow43au3uimguy
zoetrope scaling patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
                -- screen dimensions and state
138
138
 
139
 
                obj.width, obj.height, obj.windowflags = love.window.getMode()
 
139
    local w, h, flags = love.window.getMode()
 
140
    if not obj.width then obj.width = w end
 
141
    if not obj.height then obj.height = h end
 
142
    obj.windowflags = flags
140
143
                obj.fullscreen = obj.windowflags.fullscreen
141
144
 
142
145
                -- housekeeping