Separate resize from reorientation.
Remove unused parameter.