]> git.lyx.org Git - features.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>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit7b8b3e38a1b9ff4d733266a4f3fe0f8fb041da01
treea1724995fd6bc36caa263857afceefadd4424de6
parentd222e0f48e17eb838d8320f30f82b4c96b3e496e
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