diff layer/SpectrogramLayer.h @ 1026:53110ace211f spectrogram-minor-refactor

Draw right-to-left when adjoining an existing cache valid area on the right
author Chris Cannam
date Tue, 26 Jan 2016 13:19:53 +0000
parents c02de0e34233
children 0be17aafa935
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Mon Jan 25 16:16:21 2016 +0000
+++ b/layer/SpectrogramLayer.h	Tue Jan 26 13:19:53 2016 +0000
@@ -421,7 +421,8 @@
                         const std::vector<double> &binfory,
                         bool usePeaksCache,
                         MagnitudeRange &overallMag,
-                        bool &overallMagChanged) const;
+                        bool &overallMagChanged,
+                        bool rightToLeft) const;
     int paintDrawBufferPeakFrequencies(LayerGeometryProvider *v, int w, int h,
                                        const std::vector<int> &binforx,
                                        int minbin,
@@ -430,7 +431,8 @@
                                        double displayMaxFreq,
                                        bool logarithmic,
                                        MagnitudeRange &overallMag,
-                                       bool &overallMagChanged) const;
+                                       bool &overallMagChanged,
+                                       bool rightToLeft) const;
 
     virtual void updateMeasureRectYCoords(LayerGeometryProvider *v, const MeasureRect &r) const;
     virtual void setMeasureRectYCoord(LayerGeometryProvider *v, MeasureRect &r, bool start, int y) const;