Corrected the parameter types for rotate_rect.