GE Lua Documentation

Press F to search!

getDesktopMode

Definition


-- @/=[C]:-1
function getDesktopMode(...)

Callers

@/lua/ge/extensions/core/settings/graphic.lua
      if o.GraphicDisplayResolutions.width == 0 or o.GraphicDisplayResolutions.height == 0 then
        local videoMode = GFXDevice.getDesktopMode()
        o.GraphicDisplayResolutions.width = videoMode.width or 1280
      local canvas = scenetree.findObject("Canvas")
      local desktopMode = GFXDevice.getDesktopMode() or {width = 1280, height = 720}
      local newMode = tostring(desktopMode.width)..' '..tostring(desktopMode.height)