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

List:       kde-commits
Subject:    branches/work/kde4/kdebase/konsole/konsole
From:       Wilco Greven <greven () kde ! org>
Date:       2005-05-25 13:12:06
Message-ID: 1117026726.845767.16713.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 418063 by wgreven:

Probably not the most efficient way of drawing, but this way konsole becomes
usable already.


 M  +4 -5      TEWidget.cpp  


--- branches/work/kde4/kdebase/konsole/konsole/TEWidget.cpp #418062:418063
@@ -984,7 +984,6 @@
 {
   const QPixmap* pm = backgroundPixmap();
   QPainter paint;
-  // setUpdatesEnabled(false);
   paint.begin( this );
   paint.setBackgroundMode( Qt::TransparentMode );
 
@@ -994,13 +993,13 @@
   // can thus be larger than the image, but less then the size
   // of one character.
 
-  QRect rect = pe->rect().intersect(contentsRect());
+  foreach (QRect rect, (pe->region() & contentsRect()).rects())
+  {
+    paintContents(paint, rect, pm != 0);
+  }
 
-  paintContents(paint, rect, pm != 0);
-
   drawFrame( &paint );
   paint.end();
-  // setUpdatesEnabled(true);
 }
 
 void TEWidget::print(QPainter &paint, bool friendly, bool exact)
[prev in list] [next in list] [prev in thread] [next in thread] 

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