Patch from Ton van Overbeek to correct Loopy's misplaced line ends at small tile sizes. [originally from svn r6270]