Revert "changed depreciated CGDisplayCurrentMode to CGDisplayCopyDisplayMode"

This reverts commit 42646847aa01f5cd77a88bf6ba988763772991e9.