There a multiple places where we integral enclosing clip coordinates. It makes conversion between the tile layer and the painting coordinate system difficult.