Gfx: Avoid clipping with D2D when not needed
Gfx: Minor tweaks
Gfx: Make D2D draw lines if they will be clipped by at most 2 pixels