summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/annotate/src/annotate.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/annotate/src/annotate.cpp b/plugins/annotate/src/annotate.cpp
index 3f08929..82484fe 100644
--- a/plugins/annotate/src/annotate.cpp
+++ b/plugins/annotate/src/annotate.cpp
@@ -836,12 +836,14 @@ AnnoScreen::handleMotionEvent (int xRoot,
drawMode == EllipseMode))
{
/* Add border width to the damage region */
- damageRect.setGeometry (damageRect.x () - optionGetStrokeWidth (),
- damageRect.y () - optionGetStrokeWidth (),
+ damageRect.setGeometry (damageRect.x () -
+ (optionGetStrokeWidth () / 2),
+ damageRect.y () -
+ (optionGetStrokeWidth () / 2),
damageRect.width () +
- (optionGetStrokeWidth () * 2),
+ optionGetStrokeWidth () + 1,
damageRect.height () +
- (optionGetStrokeWidth () * 2));
+ optionGetStrokeWidth () + 1);
cScreen->damageRegion (damageRect);
cScreen->damageRegion (lastRect);