# HG changeset patch # User Chris Cannam # Date 1485432243 0 # Node ID 3ef162c9df008d4e66f8a35ad5312ec38eb4ffc9 # Parent eaab8bab352252e8c88fec6e91a6426a39557bfa Randomise start offset for partial paints, it looks (I think) a little better diff -r eaab8bab3522 -r 3ef162c9df00 layer/Colour3DPlotRenderer.cpp --- a/layer/Colour3DPlotRenderer.cpp Thu Jan 26 11:55:11 2017 +0000 +++ b/layer/Colour3DPlotRenderer.cpp Thu Jan 26 12:04:03 2017 +0000 @@ -218,7 +218,8 @@ int peakCacheIndex = -1, binsPerPeak = -1; getPreferredPeakCache(v, peakCacheIndex, binsPerPeak); if (peakCacheIndex == -1) { // no peak cache - x0 = int(x1 * 0.3); + double offset = 0.5 * (double(rand()) / double(RAND_MAX)); + x0 = int(x1 * offset); } } }