Prepare code for resolution change.