[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/graphics/okular/ui
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2006-06-30 18:36:42
Message-ID: 1151692602.798701.23604.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 556580 by pino:

bitBlt -> QPainter::drawPixmap


 M  +4 -2      presentationwidget.cpp  


--- trunk/playground/graphics/okular/ui/presentationwidget.cpp #556579:556580
@@ -370,6 +370,7 @@
     // blit the pixmap to the screen
     QVector<QRect> 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 @@
 
             // 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();
 }
 // </widget events>
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic