summaryrefslogtreecommitdiffstats
path: root/src/openglwidgets/qopenglwidget.cpp
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-05-13 10:52:51 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2022-05-24 03:10:10 +0200
commit69ad72b05ce391c114b5e97fdd6a262b9f5ac0cc (patch)
tree2bc5c811c8df5744026e7cd094fc2997ff26938d /src/openglwidgets/qopenglwidget.cpp
parentaf59c56dc18cd866f8ad07fcf9cb606ca3848c58 (diff)
wasm: use correct geometry when drawing window decorations
We were drawing window decorations at an incorrect location in cases where the QScreen was not at (0,0) (i.e. at an offset on the web page). Window content was placed correctly. Correct canvas geometry can be fond by offsetting window geometry by the negative screen position. Implement this for drawWindowDecorations(), and also simplify the existing code in drawWindowContent(). Change-Id: I1347d325a58dae5e2bb950b93902123f64199ee8 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: David Skoland <david.skoland@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions