Fix the repaint position.
The geometry is used to set the dirty region of the screen, so it must be translated in screen coordinates. Change-Id: Ic559a0a0d0e840cb2aa27ae1b02dcc140b29556f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>bb10
parent
630d74a40c
commit
25d5b2e07b
|
|
@ -54,7 +54,7 @@ QAndroidPlatformRasterWindow::QAndroidPlatformRasterWindow(QWindow *window)
|
|||
|
||||
void QAndroidPlatformRasterWindow::repaint(const QRegion ®ion)
|
||||
{
|
||||
QRect currentGeometry = geometry();
|
||||
QRect currentGeometry = geometry().translated(mapToGlobal(QPoint(0,0)));
|
||||
|
||||
QRect dirtyClient = region.boundingRect();
|
||||
QRect dirtyRegion(currentGeometry.left() + dirtyClient.left(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue