--- a/src/openvg/qwindowsurface_vg.cpp Thu Apr 08 14:19:33 2010 +0300
+++ b/src/openvg/qwindowsurface_vg.cpp Fri Apr 16 11:39:52 2010 +0300
@@ -57,6 +57,7 @@
{
// Create the default type of EGL window surface for windows.
d_ptr = new QVGEGLWindowSurfaceDirect(this);
+ setStaticContentsSupport(d_ptr->supportsStaticContents());
}
QVGWindowSurface::QVGWindowSurface
@@ -89,7 +90,9 @@
bool QVGWindowSurface::scroll(const QRegion &area, int dx, int dy)
{
- return QWindowSurface::scroll(area, dx, dy);
+ if (!d_ptr->scroll(window(), area, dx, dy))
+ return QWindowSurface::scroll(area, dx, dy);
+ return true;
}
void QVGWindowSurface::beginPaint(const QRegion ®ion)