From 378fa13c90376d19955790719bb9bcb8d8954752 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 30 Jun 2006 18:36:41 +0000 Subject: [PATCH] bitBlt -> QPainter::drawPixmap svn path=/trunk/playground/graphics/okular/; revision=556580 --- ui/presentationwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp index 7497475c0..f6a24081e 100644 --- a/ui/presentationwidget.cpp +++ b/ui/presentationwidget.cpp @@ -370,6 +370,7 @@ void PresentationWidget::paintEvent( QPaintEvent * pe ) // blit the pixmap to the screen QVector allRects = pe->region().rects(); uint numRects = allRects.count(); + QPainter painter( this ); for ( uint i = 0; i < numRects; i++ ) { const QRect & r = allRects[i]; @@ -393,12 +394,13 @@ void PresentationWidget::paintEvent( QPaintEvent * pe ) // finally blit the pixmap to the screen pixPainter.end(); - bitBlt( this, r.topLeft(), &backPixmap, backPixmap.rect() ); + painter.drawPixmap( r.topLeft(), backPixmap, backPixmap.rect() ); } else #endif // copy the rendered pixmap to the screen - bitBlt( this, r.topLeft(), &m_lastRenderedPixmap, r ); + painter.drawPixmap( r.topLeft(), m_lastRenderedPixmap, r ); } + painter.end(); } //