aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-06-20 14:45:29 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-20 14:23:02 +0000
commitcc4954e9646cd93d9710e4e28942d2a82762771e (patch)
treea34a5c5773c381674b77b8ce4835cd9a7fce1738 /examples
parentc884f85863d5cbb90d8a1f3972ddb37b3d3f7e14 (diff)
Software Renderer: Call QBackingStore::beginPaint with correct QRegion
When rendering into QBackingStores, it is important to let the backingstore know what region you intended to paint into before you start rendering. Previously we were calling QBackingStore::beginPaint on the whole window area, but then only rendering and flushing for a subset of that area. This causes issues on platforms that depend on QBackingStore::beginPaint to be all area that will be repainted before the next flush, so that they can for example clear those areas. This change required a bit of extra plumbing in the Software Renderer, but now it is possible to calculate the area that will be repainted before painting it, and pass that region to QBackingStore::beginPaint(). Change-Id: I90be1916ebbe8fc182cd13246bb6690cc7e16d27 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions