equal
deleted
inserted
replaced
350 Q_UNUSED(toCleanIsInTopLevelCoordinates); |
350 Q_UNUSED(toCleanIsInTopLevelCoordinates); |
351 |
351 |
352 // Always flush repainted areas. |
352 // Always flush repainted areas. |
353 dirtyOnScreen += toClean; |
353 dirtyOnScreen += toClean; |
354 |
354 |
355 #ifdef Q_WS_QWS |
355 #if defined(Q_WS_QWS) && !defined(Q_BACKINGSTORE_SUBSURFACES) |
356 toClean.translate(tlwOffset); |
356 toClean.translate(tlwOffset); |
357 #endif |
357 #endif |
358 |
358 |
359 #ifdef QT_NO_PAINT_DEBUG |
359 #ifdef QT_NO_PAINT_DEBUG |
360 windowSurface->beginPaint(toClean); |
360 windowSurface->beginPaint(toClean); |
1292 resetWidget(w); |
1292 resetWidget(w); |
1293 |
1293 |
1294 #ifdef Q_BACKINGSTORE_SUBSURFACES |
1294 #ifdef Q_BACKINGSTORE_SUBSURFACES |
1295 QWindowSurface *subSurface = w->windowSurface(); |
1295 QWindowSurface *subSurface = w->windowSurface(); |
1296 BeginPaintInfo beginPaintInfo; |
1296 BeginPaintInfo beginPaintInfo; |
1297 beginPaint(toBePainted, w, subSurface, &beginPaintInfo, false); |
1297 |
|
1298 QPoint off = w->mapTo(tlw, QPoint()); |
|
1299 toBePainted.translate(off); |
|
1300 beginPaint(toBePainted, w, subSurface, &beginPaintInfo, true); |
|
1301 toBePainted.translate(-off); |
|
1302 |
1298 if (beginPaintInfo.nothingToPaint) |
1303 if (beginPaintInfo.nothingToPaint) |
1299 continue; |
1304 continue; |
1300 |
1305 |
1301 if (beginPaintInfo.windowSurfaceRecreated) { |
1306 if (beginPaintInfo.windowSurfaceRecreated) { |
1302 // Eep the window surface has changed. The old one may have been |
1307 // Eep the window surface has changed. The old one may have been |