Check if the surfarce rect is changed