summaryrefslogtreecommitdiff
path: root/include/cppcanvas/canvas.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppcanvas/canvas.hxx')
-rw-r--r--include/cppcanvas/canvas.hxx21
1 files changed, 9 insertions, 12 deletions
diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx
index 441986cd03b6..ec34af5e0caa 100644
--- a/include/cppcanvas/canvas.hxx
+++ b/include/cppcanvas/canvas.hxx
@@ -54,18 +54,15 @@ namespace cppcanvas
class Canvas
{
public:
- enum
- {
- /** Extra pixel used when canvas anti-aliases.
-
- Enlarge the bounding box of drawing primitives by this
- amount in both dimensions, and on both sides of the
- bounds, to account for extra pixel touched outside the
- actual primitive bounding box, when the canvas
- performs anti-aliasing.
- */
- ANTIALIASING_EXTRA_SIZE=2
- };
+ /** Extra pixel used when canvas anti-aliases.
+
+ Enlarge the bounding box of drawing primitives by this
+ amount in both dimensions, and on both sides of the
+ bounds, to account for extra pixel touched outside the
+ actual primitive bounding box, when the canvas
+ performs anti-aliasing.
+ */
+ static constexpr auto ANTIALIASING_EXTRA_SIZE=2;
Canvas() = default;
Canvas(Canvas const &) = default;