g_Windowing.DesktopResolution(g_Windowing.GetCurrentScreen()) returns the resolution index.