diff options
author | Timothy Pearson <[email protected]> | 2012-11-20 21:08:42 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-11-20 21:08:42 -0600 |
commit | 38b854c89cd8e8f9763b420bdd03908d8e8f4cfc (patch) | |
tree | 8a4801c083731f0cea6ac884bd47e7436a38d2d8 /tdegtk/tqtcairopainter.cpp | |
parent | 7bd0369aafb78cfd24e2a33049a21bbc164681e7 (diff) | |
download | gtk3-tqt-engine-38b854c89cd8e8f9763b420bdd03908d8e8f4cfc.tar.gz gtk3-tqt-engine-38b854c89cd8e8f9763b420bdd03908d8e8f4cfc.zip |
Regenerate theme control file if new version of theme engine is installed
Fix scrollbars
Diffstat (limited to 'tdegtk/tqtcairopainter.cpp')
-rw-r--r-- | tdegtk/tqtcairopainter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tdegtk/tqtcairopainter.cpp b/tdegtk/tqtcairopainter.cpp index 677d9c7..25024ee 100644 --- a/tdegtk/tqtcairopainter.cpp +++ b/tdegtk/tqtcairopainter.cpp @@ -381,11 +381,12 @@ void TQt3CairoPaintDevice::transferIntermediateSurface() { } // Clear intermediate surface - cairo_save(m_painter); - cairo_set_operator(m_painter, CAIRO_OPERATOR_SOURCE); - cairo_set_source_rgba(m_painter, 0.0, 0.0, 0.0, 0.0); - cairo_paint(m_painter); - cairo_restore(m_painter); + cairo_t *clearPainter = cairo_create(m_intermediateSurface); + cairo_set_operator(clearPainter, CAIRO_OPERATOR_SOURCE); + cairo_set_source_rgba(clearPainter, 0.0, 0.0, 0.0, 0.0); + cairo_paint(clearPainter); + cairo_surface_flush(m_intermediateSurface); + cairo_destroy(clearPainter); m_transferNeeded = false; } |