Skip to content
  • Benjamin Berg's avatar
    assembling: Fix copying only partial tile on overhang · 51cab75b
    Benjamin Berg authored
    If the tile in question was hanging over the left edge we would not be
    copying the full available width. Fix this and change the test to catch
    the error condition (by forcing a too small image and overlap both
    ways).
    
    Simplify the code by only selecting the starting point inside the
    image/frame and then just checking the both image and frame boundary in
    the loop. Not quite as efficient, but it really shouldn't matter too
    much here.
    51cab75b