split function to toggle fullscreen and change window scaling