From 35160b1adad398999b40667eb3d9d85d792de8b6 Mon Sep 17 00:00:00 2001 From: Lotzi Boloni Date: Thu, 16 Dec 1999 15:07:30 +0000 Subject: [PATCH] I think that I fixed that ugly redraw bug which appeared on pixmapped and transparent consoles. svn path=/trunk/kdebase/konsole/; revision=36748 --- src/TEWidget.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/TEWidget.C b/src/TEWidget.C index 707467cd..465a3990 100644 --- a/src/TEWidget.C +++ b/src/TEWidget.C @@ -322,7 +322,8 @@ HCNT("paintEvent"); // FIXME: explain/change 'rounding' style - QRect rect = pe->rect().intersect(contentsRect()); + QRect rect = pe->rect().intersect(contentsRect()); + QPoint tL = contentsRect().topLeft(); int tLx = tL.x(); int tLy = tL.y(); @@ -336,8 +337,11 @@ HCNT("paintEvent"); printf("paintEvent: %d..%d, %d..%d (%d..%d, %d..%d)\n",lux,rlx,luy,rly, rect.left(), rect.right(), rect.top(), rect.bottom()); */ - if (pm != NULL && color_table[image->b].transparent) - erase(rect); + + // if (pm != NULL && color_table[image->b].transparent) + // erase(rect); + // BL: I have no idea why we need this, and it breaks the refresh. + for (int y = luy; y <= rly; y++) for (int x = lux; x <= rlx; x++) { char *disstr = new char[columns]; int len = 1;