client: Avoid additional translations copying backing store contents


The current code uses QPainter to copy damaged contents into the new
back buffer.

QPainter operates in logical pixels taking into account the
devicePixelRatio transparently. The current code tries to undo this with
another translation on top to work in device pixels.

With floating point numbers there's a tiny amount of inprecision, each
translation adds a tiny amount of error. The end result is pixels can
get missed.

Making QPainter calls in logical pixels gives us the exact path as the
main rendering.

Pick-to: 6.8
Change-Id: I2f6bd8a69a7273f21055248973e14e14066b1c67
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
commitd1e22e0b505d0199bae8507d26ce89cf48d8f915
parent5aaeb6b35cd3c09624e39464ced81613952fc790
authorDavid Edmundson <davidedmundson@kde.org>
committerDavid Edmundson <davidedmundson@kde.org>
commit timeFri, 15 Nov 2024 16:25:56 +0000