add getScreenMode in screen.lua