aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Geometry.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Geometry.h b/src/Geometry.h
index bf8f4096e..e9cb5a6c8 100644
--- a/src/Geometry.h
+++ b/src/Geometry.h
@@ -243,10 +243,10 @@ class Stroke {
public:
ColourAlpha colour;
XYPOSITION width;
- constexpr Stroke(ColourAlpha colour_, XYPOSITION width_=1.0f) noexcept :
+ constexpr Stroke(ColourAlpha colour_, XYPOSITION width_=1.0) noexcept :
colour(colour_), width(width_) {
}
- constexpr float WidthF() {
+ constexpr float WidthF() const noexcept {
return static_cast<float>(width);
}
};
@@ -269,10 +269,10 @@ class FillStroke {
public:
Fill fill;
Stroke stroke;
- constexpr FillStroke(ColourAlpha colourFill_, ColourAlpha colourStroke_, XYPOSITION widthStroke_=1.0f) noexcept :
+ constexpr FillStroke(ColourAlpha colourFill_, ColourAlpha colourStroke_, XYPOSITION widthStroke_=1.0) noexcept :
fill(colourFill_), stroke(colourStroke_, widthStroke_) {
}
- constexpr FillStroke(ColourAlpha colourBoth, XYPOSITION widthStroke_=1.0f) noexcept :
+ constexpr FillStroke(ColourAlpha colourBoth, XYPOSITION widthStroke_=1.0) noexcept :
fill(colourBoth), stroke(colourBoth, widthStroke_) {
}
};