Put dirtyRect to onUpped param