REG: Fix window repaint geometry

Task-number: QTBUG-37530

Change-Id: I642c8ef8cf7de50e4a84d8356693b82f8674cece
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
BogDan Vatra 2014-03-24 09:35:52 +02:00 committed by The Qt Project
parent f1f07eae2d
commit 12bd35aa24

View File

@ -57,7 +57,7 @@ void QAndroidPlatformRasterWindow::repaint(const QRegion &region)
if (QAndroidPlatformWindow::parent())
return;
QRect currentGeometry = geometry().translated(mapToGlobal(QPoint(0,0)));
QRect currentGeometry = geometry();
QRect dirtyClient = region.boundingRect();
QRect dirtyRegion(currentGeometry.left() + dirtyClient.left(),
@ -74,7 +74,7 @@ void QAndroidPlatformRasterWindow::repaint(const QRegion &region)
void QAndroidPlatformRasterWindow::setGeometry(const QRect &rect)
{
m_oldGeometry = geometry().translated(mapToGlobal(QPoint(0,0)));;
m_oldGeometry = geometry();
QAndroidPlatformWindow::setGeometry(rect);
}