Follow-up fixes for FillRect+transforms

* Factor out AlignRect to avoid code duplication
* Give the right rectangle to the OverlayHider.