Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/common/eglonxbackend.cpp
Context not available. | |||||
370 | } | 370 | } | ||
---|---|---|---|---|---|
371 | } else { | 371 | } else { | ||
372 | // a part of the screen changed, and we can use eglPostSubBufferNV to copy the updated area | 372 | // a part of the screen changed, and we can use eglPostSubBufferNV to copy the updated area | ||
373 | foreach (const QRect & r, damage.rects()) { | 373 | const QVector<QRect> rects = damage.rects(); | ||
374 | for (const QRect & r : rects) { | ||||
374 | eglPostSubBufferNV(eglDisplay(), surface, r.left(), screenGeometry.height() - r.bottom() - 1, r.width(), r.height()); | 375 | eglPostSubBufferNV(eglDisplay(), surface, r.left(), screenGeometry.height() - r.bottom() - 1, r.width(), r.height()); | ||
375 | } | 376 | } | ||
376 | } | 377 | } | ||
Context not available. |