]> git.lyx.org Git - features.git/commit
This commit removes the needRedraw() interface and simplify the screen update procedu...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 14 Jul 2006 09:56:21 +0000 (09:56 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 14 Jul 2006 09:56:21 +0000 (09:56 +0000)
commit93f7adabbb85af4bcf09fd70c5a2ffe5305d1db8
treec6a55f9fd0e1b48dad77a9c8d26ab3064dc81f8c
parent3c9e9cf03abddecf18eeb2f96a68a2b71d9b0543
This commit removes the needRedraw() interface and simplify the screen update procedure. It also fixes all crash problems.
The performance may suffer a bit because we do the second drawing step in all cases. This could be possibly optimized out by checking the return value of the BufferView::update() method in "lyxfunc.C:1610". But it is maybe better to keep those two parts of the frontend ignorant of each other: the event handling and the drawing.

BufferView:
* needRedra(), need_redraw_: deleted.
* updateMetrics(): now public.
* update(): only do the first drawing step. Returns true if a full updateMetrics is needed before drawing on screen.

WorkArea:
* redraw(): no check on BufferView::needRedraw(), call updateMetrics() unconditionally.
* processKeySim(): uneeded "redraw()" call commented out. When/if the call to LyXView::redrawWorkArea() in "lyxfunc.C:1610" is not needed anymore, this line should be uncommented out.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14456 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.C
src/BufferView.h
src/BufferView_pimpl.C
src/BufferView_pimpl.h
src/frontends/WorkArea.C