aboutsummaryrefslogtreecommitdiffstats
path: root/subsurfacelatextemplate.tex
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-03 23:18:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commitacee77e516bc77cd49a57b5aac620833ea655eb6 (patch)
treebf2ef5c8cee16bfdad7eb727d7d7d7a5e428d8cc /subsurfacelatextemplate.tex
parent0146a0c8925e243d808a4e5488d068d6f8f065b6 (diff)
downloadsubsurface-acee77e516bc77cd49a57b5aac620833ea655eb6.tar.gz
profile: move calculations out of DivePercentageItem::paint()
The DivePercentageItem is a polygon-item with a custom paint() method. Calculation of the polygon is done once in replot(), but calculation of the corresponding colors is done in every paint() call. The problem is, we have no control over paint(). It is called whenever Qt feels like. Therefore using live dive data is a dangerous proposition if we ever want to get rid of the global displayed_dive. Do all the calculations in replot(). Store the colors in an additional array of the same size as the polygon. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurfacelatextemplate.tex')
0 files changed, 0 insertions, 0 deletions