[Konsole-devel] bugfix/speedup

Paul Pogonyshev pogonyshev at gmx.net
Thu Apr 3 23:01:45 UTC 2003


Hi, Konsole team!

Thank you for the nice program that i use a good slice of my computer time ;)
I wrote once about Konsole being too slow at redrawing (e.g. when scrolling)
but you all seem to be using it with transparent backround which has been ok
regarding speed.

This simple patch speeds redrawing up noticeably (with solid or texture
background) and almost eliminates flickering.

Please let me know if i missed something or if it doesn't work under some
circumstances.

best regards,
  Paul Pogonyshev


Index: TEWidget.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/TEWidget.cpp,v
retrieving revision 1.188
diff -u -p -r1.188 TEWidget.cpp
--- TEWidget.cpp	18 Mar 2003 20:18:17 -0000	1.188
+++ TEWidget.cpp	3 Apr 2003 22:58:20 -0000
@@ -411,7 +411,8 @@ void TEWidget::drawAttrStr(QPainter &pai
     }
     else
     {
-      paint.fillRect(rect, color_table[attr->b].color);
+      if (clear || (blinking && (attr->r & RE_BLINK)))
+        paint.fillRect(rect, color_table[attr->b].color);
     }
   }
 




More information about the konsole-devel mailing list