Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/canvas.h
diff options
context:
space:
mode:
authorolpc <olpc@xo-05-26-CC.localdomain>2008-11-30 16:44:49 (GMT)
committer olpc <olpc@xo-05-26-CC.localdomain>2008-11-30 16:44:49 (GMT)
commit879eaafaba8b6d1ae2d618022079ce86ff8bf526 (patch)
treee8fb1dc6be74e551f379514b54317cb398f2f740 /src/canvas.h
parent8fd8269c42bd9d92f0f8a37a75504b1f866861fe (diff)
Added brush preview to toolbar.
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