content: sub main()
      screen = createObject("roSGScreen")
      port = createObject("roMessagePort")
      screen.setMessagePort(port)
  
      scene = screen.createScene("mainScene")
      screen.show()
  
  
      while(true)
          msg = wait(0, port)
          if type(msg) = "roSGScreenEvent"
              if msg.isScreenClosed() then return
          end if
      end while
  end sub
  
  
  function getUIResolution() as object
      di = createObject("roDeviceInfo")
      return di.getUIResolution()
  end function