still sluggish...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)
? .paragraph_funcs.h.swp
? 1.diff
? 1.diff.gz
? 2.diff
? 3.diff
? ?t
? fullredraw.diff
? par-row.diff
? tabular-il.diff
? textcache.diff
? insets/1.diff
? mathed/cursor.diff
? support/1.diff
Index: rowpainter.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/rowpainter.C,v
retrieving revision 1.91
diff -u -p -r1.91 rowpainter.C
--- rowpainter.C        21 Nov 2003 08:35:13 -0000      1.91
+++ rowpainter.C        21 Nov 2003 13:48:05 -0000
@@ -1009,15 +1009,20 @@ int paintRows(BufferView const & bv, LyX
 
 int paintText(BufferView & bv)
 {
+#if 0
        int const topy = bv.top_y();
        ParagraphList::iterator pit;
        RowList::iterator rit = bv.text->getRowNearY(topy, pit);
        int const y = pit->y + rit->y_offset() - topy;
        return paintRows(bv, *bv.text, pit, rit, 0, y, y, 0);
+#else
+       RowList::iterator rit = bv.text->firstRow();
+       return paintTextInset(bv, *bv.text, 0, - bv.top_y() + rit->ascent_of_text());
+#endif
 }
 
 
-void paintTextInset(BufferView & bv, LyXText & text, int x, int baseline)
+int paintTextInset(BufferView & bv, LyXText & text, int x, int baseline)
 {
        RowList::iterator rit = text.firstRow();
        RowList::iterator end = text.endRow();
@@ -1030,9 +1035,9 @@ void paintTextInset(BufferView & bv, LyX
                text.nextRow(pit, rit);
        }
        if (y_offset < 0)
-               paintRows(bv, text, pit, rit, x, 0, y, y);
+               return paintRows(bv, text, pit, rit, x, 0, y, y);
        else
-               paintRows(bv, text, pit, rit, x, 0, y_offset, y_offset);
+               return paintRows(bv, text, pit, rit, x, 0, y_offset, y_offset);
 }
 
 
Index: rowpainter.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/rowpainter.h,v
retrieving revision 1.15
diff -u -p -r1.15 rowpainter.h
--- rowpainter.h        27 Aug 2003 14:55:17 -0000      1.15
+++ rowpainter.h        21 Nov 2003 13:48:05 -0000
@@ -24,6 +24,6 @@ int getLengthMarkerHeight(BufferView con
 int paintText(BufferView & bv);
 
 /// paint the rows of a text inset
-void paintTextInset(BufferView & bv, LyXText & text, int x, int y);
+int paintTextInset(BufferView & bv, LyXText & text, int x, int y);
 
 #endif // ROWPAINTER_H

Reply via email to