MADS: Fixed handling of dirty rects to copy areas to the physical screen