refactor code
splash: update getPrimaryScreenResolution()