Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| @@ -33,6 +34,7 @@
|  #include "language.h"
|  #include "debug.h"
|  
| +using std::abs;
|  using std::endl;
|  using std::max;
|  using std::min;
| @@ -213,8 +215,7 @@ void XScreen::draw(LyXText * text, Buffe
|       text->first_y = y;
|  
|       // is any optimization possible?
| -     if ((y - old_first) < owner_.workHeight()
| -         && (old_first - y) < owner_.workHeight())

droddling:
        y < owner_.workHeight() + old_first
        old_first < owner_.workHeight() + y

        y - owner_.workHeight() < old_first
        old_first - owner_.workHeight() < y

        y - owner_.workHeight() - old_first < 0
        old_first - owner_.workHeight() - y < 0

        y - old_first - owner_.workHeight() < 0
        y - old_first + owner_.workHeight() > 0

        y - old_first < owner_.workHeight()
        y - old_first > -owner_.workHeight()

        y < owner_.workHeight() + old_first
        y > old_first - owner_.workHeight()

Do any of these make any sense? Especially the last one?

-- 
        Lgb

Reply via email to