diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-14 14:28:20 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-14 14:28:20 -0700 |
| commit | 2ab453ac53e4c2a9d23a58a12c5403d2b6b96b69 (patch) | |
| tree | 3a5558ba396ac570f26ea50f7e8e5a9f473efe6e /var.lua | |
| parent | 613be346449b5420de616978d22c82ed16baa5c5 (diff) | |
Window resolution settings work now
Detect computers supported resolutions
Diffstat (limited to 'var.lua')
| -rw-r--r-- | var.lua | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -209,21 +209,17 @@ function loadVar() stre[1] = {} stre[1].title = "Native" stre[1].hl = true - stre[2] = {} - stre[2].title = "1280x720" - stre[2].hl = false - stre[3] = {} - stre[3].title = "1920x1080" - stre[3].hl = false - stre[4] = {} - stre[4].title = "1280x1024" - stre[4].hl = false - stre[5] = {} - stre[5].title = "1440x900" - stre[5].hl = false - stre[6] = {} - stre[6].title = "1366x768" - stre[6].hl = false + modes = love.window.getFullscreenModes() + for i=1,#modes do + if modes[i].width >= 1000 and modes[i].height >= 720 and i <= 10 then + table.insert(stre, { + title = modes[i].width .. "x" .. modes[i].height, + hl = false, + w = modes[i].width, + h = modes[i].height, + }) + end + end f = {} f.home = {} f.home[1] = {name="Documents",x=0,y=0,hl=false} |
