Re: [PATCH] update vs repaint

2006-03-23 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

Jean-Marc> There was a consensus that this patch is the right thing to
Jean-Marc> do, even though it might not speed things up per se. I
Jean-Marc> tested it and propose to apply to trunk and branch.

I applied it.

JMarc


Re: [PATCH] update vs repaint

2006-03-22 Thread Abdelrazak Younes

Jean-Marc Lasgouttes a écrit :

There was a consensus that this patch is the right thing to do, even
though it might not speed things up per se. I tested it and propose to
apply to trunk and branch.

OK?


Alleluia!
:-)



[PATCH] update vs repaint

2006-03-22 Thread Jean-Marc Lasgouttes

There was a consensus that this patch is the right thing to do, even
though it might not speed things up per se. I tested it and propose to
apply to trunk and branch.

OK?

JMarc

Index: src/frontends/qt2/qscreen.C
===
--- src/frontends/qt2/qscreen.C	(revision 13433)
+++ src/frontends/qt2/qscreen.C	(working copy)
@@ -144,7 +144,7 @@ void QScreen::showCursor(int x, int y, i
 		break;
 	}
 
-	owner_.getContent()->repaint(
+	owner_.getContent()->update(
 		cursor_x_, cursor_y_,
 		cursor_w_, cursor_h_);
 }
@@ -160,5 +160,5 @@ void QScreen::removeCursor()
 	   &nocursor_pixmap_, 0, 0, cursor_w_, cursor_h_);
 
 	owner_.getContent()
-		->repaint(cursor_x_, cursor_y_, cursor_w_, cursor_h_);
+		->update(cursor_x_, cursor_y_, cursor_w_, cursor_h_);
 }