Hooks to determine screen resolution