Updated checkscreenrotation function call