diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-18 18:35:29 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-20 06:40:07 +0000 |
commit | 8aa14a84a91d3f8116e04cbe68bfcdb0207c2a3b (patch) | |
tree | 34bcd01046a5c74eb2f8a0f45342d08eadc57c13 /src/widgets | |
parent | 8316131dab00a18d581e3b7627122d5e983bb213 (diff) |
macOS: Correctly scale CALayer contentsRect for child NSViews
When flushing parts of a QBackingStore onto child QWindows, and we're
in layer-backed mode, we need to set the contentsRect of the layer
so that the layer will only show the part of the top-level-owned
backingstore image that's relevant for the child window.
Since the contentsRect is in unit coordinate system, we need to apply
a transform, but this must be based on the top level view's size, not
the image size, as the latter will be twice as big on a retina screen,
giving the wrong unit rect.
Change-Id: I7d6f378ed46a98272efb13406a2878ec1efe734e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions