Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/canvas.h')
-rw-r--r--src/canvas.h9
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