Fix weird decoration glitch when using a scaled display
We used to get a weird line around the window decoration because the clamping would hit the outside of the rendered decoration. To make sure we fall inside take the displayPixelRatio into account. Also on non-integer scales, make sure we are actually falling inside.