]> git.lyx.org Git - lyx.git/commit
Do the actual drawing in the paint event
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 8 Sep 2017 14:55:11 +0000 (16:55 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 8 Sep 2017 14:55:11 +0000 (16:55 +0200)
commit24c29908bd68ac36199bf413d9fed078f6f1f224
tree0cb4f52f7faf0027106177a73a459edfb361e0d7
parentefc735901523752a26440b2d3da390d1c787bc56
Do the actual drawing in the paint event

Historically, because of two-stage drawing, LyX has been painting on a
Pixmap, and this pixmap is copied to screen at paint event time.

Now that we have three-stage drawing, it is possible to delay the
painting to actual paint event and avoid the intermediate Pixmap.

Known bug: the cursor is never erased.
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea_Private.h