Created attachment 94621 [details] drawPattern patch Make sure x and y adjustments are applied to all operations, and fix the calculations for the height and width checks to take into account x and y offsets.
Landed in r87169, thanks!