On Fri, 2006-03-17 at 12:25 +0100, Georg Baum wrote:
> Abdelrazak Younes wrote:

...

> > But on the subject of QPixmap vs QImage in QWorkArea, I would like to
> > continue investigating this route a bit. Right now, correct me if I'm
> > wrong, the lyx kernel ask for a repaint of the whole screen for each and
> > every drawing operation as shown by the debug message in
> > QScreen::expose(). So the whole image is sent through the network. I
> > remember reading that this will eventually change in some future
> > version, won't it? If yes, this would decrease the network traffic
> > significantly.
> 
> I remember having read that, too.

I don't... but it appears straightforward to do. See patch. Works fine
for me.

- Martin



Index: screen.C
===================================================================
--- screen.C	(revision 13408)
+++ screen.C	(working copy)
@@ -219,7 +219,8 @@ void LyXScreen::redraw(BufferView & bv, 
 	workarea().getPainter().start();
 	paintText(bv, vi);
 	lyxerr[Debug::DEBUG] << "Redraw screen" << endl;
-	expose(0, 0, workarea().workWidth(), workarea().workHeight());
+	//expose(0, 0, workarea().workWidth(), workarea().workHeight());
+	expose(0, vi.y1, workarea().workWidth(), vi.y2 - vi.y1);
 	workarea().getPainter().end();
 	theCoords.doneUpdating();
 }

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to