summaryrefslogtreecommitdiff
path: root/wx+/graph.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:01:21 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:01:21 +0200
commitb962d4fd3f8e802b99bd9c074851fd0f05a12adb (patch)
tree13a12ded9c3a9713a8c368975a95f5efe6ec997c /wx+/graph.h
parent9.2 (diff)
downloadFreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.tar.gz
FreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.tar.bz2
FreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.zip
9.3
Diffstat (limited to 'wx+/graph.h')
-rwxr-xr-xwx+/graph.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/wx+/graph.h b/wx+/graph.h
index 84927b6d..89475611 100755
--- a/wx+/graph.h
+++ b/wx+/graph.h
@@ -47,7 +47,7 @@ struct CurveData
virtual ~CurveData() {}
virtual std::pair<double, double> getRangeX() const = 0;
- virtual std::vector<CurvePoint> getPoints(double minX, double maxX, int pixelWidth) const = 0; //points outside the draw area are automatically trimmed!
+ virtual std::vector<CurvePoint> getPoints(double minX, double maxX, const wxSize& areaSizePx) const = 0; //points outside the draw area are automatically trimmed!
};
//special curve types:
@@ -56,7 +56,7 @@ struct ContinuousCurveData : public CurveData
virtual double getValue(double x) const = 0;
private:
- std::vector<CurvePoint> getPoints(double minX, double maxX, int pixelWidth) const override;
+ std::vector<CurvePoint> getPoints(double minX, double maxX, const wxSize& areaSizePx) const override;
};
struct SparseCurveData : public CurveData
@@ -67,7 +67,7 @@ struct SparseCurveData : public CurveData
virtual Opt<CurvePoint> getGreaterEq(double x) const = 0;
private:
- std::vector<CurvePoint> getPoints(double minX, double maxX, int pixelWidth) const override;
+ std::vector<CurvePoint> getPoints(double minX, double maxX, const wxSize& areaSizePx) const override;
const bool addSteps_;
};
bgstack15