diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/canvas.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/canvas.h b/src/canvas.h index 78ff6ca..4ed288c 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -342,6 +342,15 @@ public: control = 0; opacity = 1.0f; } + + Brush(const Brush& a) + { + type = a.type; + color = a.color; + size = a.size; + control = a.control; + opacity = a.opacity; + } }; // The canvas represents the current state of the user's painting. It maintains both the pixels representing the |