diff options
author | Darrell Anderson <[email protected]> | 2012-11-19 07:26:30 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-11-19 07:26:30 -0600 |
commit | 20ccd4b81eee8c0d20b4cabdcdc8ed8356e51f21 (patch) | |
tree | da309377d75843d0139d0bf09dae76999d147477 /src/kernel/qpainter_x11.cpp | |
parent | c4fcfaa593835ff3568310c6937f47d69196f281 (diff) | |
parent | b5d6591054de1d4f66280207023c43e9e191146c (diff) | |
download | qt3-20ccd4b81eee8c0d20b4cabdcdc8ed8356e51f21.tar.gz qt3-20ccd4b81eee8c0d20b4cabdcdc8ed8356e51f21.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'src/kernel/qpainter_x11.cpp')
-rw-r--r-- | src/kernel/qpainter_x11.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index c1e4e07..2aea6bc 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -1264,8 +1264,16 @@ bool QPainter::end() // end painting \sa flush() CoordinateMode */ -void QPainter::flush(const QRegion &, CoordinateMode) +void QPainter::flush(const QRegion &rgn, CoordinateMode m) { + if ( testf(ExtDev) ) { + QPDevCmdParam param[2]; + param[0].rgn = &rgn; + param[1].ival = m; + pdev->cmd( QPaintDevice::PdcFlushRegion, this, param ); + return; + } + flush(); } @@ -1278,6 +1286,11 @@ void QPainter::flush(const QRegion &, CoordinateMode) void QPainter::flush() { + if ( testf(ExtDev) ) { + pdev->cmd( QPaintDevice::PdcFlush, this, 0 ); + return; + } + if ( isActive() && dpy ) XFlush( dpy ); } |