summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2010-02-22 10:41:22 -0700
committerScott Moreau <oreaus@gmail.com>2010-02-22 11:06:09 -0700
commit374393a340dfefbac9c6441d6c1a3cbf80d2b220 (patch)
tree10fadbe150e48ae1119738ded4ceb22ffd8616be
parente7f252407a646d73d5019fc11eea72e3d1348eb0 (diff)
downloadcompiz-core-doc-374393a340dfefbac9c6441d6c1a3cbf80d2b220.tar.gz
compiz-core-doc-374393a340dfefbac9c6441d6c1a3cbf80d2b220.tar.bz2
Add option to change erase size.
-rw-r--r--plugins/annotate/annotate.xml.in8
-rw-r--r--plugins/annotate/src/annotate.cpp2
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/annotate/annotate.xml.in b/plugins/annotate/annotate.xml.in
index d31dff2..c9a602b 100644
--- a/plugins/annotate/annotate.xml.in
+++ b/plugins/annotate/annotate.xml.in
@@ -68,6 +68,14 @@
<green>0xffff</green>
</default>
</option>
+ <option name="erase_width" type="float">
+ <_short>Erase width</_short>
+ <_long>Erase size</_long>
+ <default>20.0</default>
+ <min>1.0</min>
+ <max>100.0</max>
+ <precision>0.1</precision>
+ </option>
<option name="stroke_width" type="float">
<_short>Stroke width</_short>
<_long>Stroke width for annotations</_long>
diff --git a/plugins/annotate/src/annotate.cpp b/plugins/annotate/src/annotate.cpp
index ec294aa..76a2a94 100644
--- a/plugins/annotate/src/annotate.cpp
+++ b/plugins/annotate/src/annotate.cpp
@@ -761,7 +761,7 @@ AnnoScreen::handleMotionEvent (int xRoot,
case EraseMode:
drawLine (annoLastPointerX, annoLastPointerY,
xRoot, yRoot,
- 20.0, clearColor);
+ optionGetEraseWidth (), clearColor);
break;
case FreeDrawMode: