summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-10-23 21:15:12 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-10-23 21:15:12 +0200
commit2ee362f40d908f817bb23a4af43d4021d3732bdc (patch)
treec5638126347034b6a5fc6ba89d4d696456d7ac6f /src
parent1d6159c0277a0d6d356f8918500545c4e0358d48 (diff)
fix damage() code in GipfelWidget
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 5beb6ea..8aff10e 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -476,13 +476,13 @@ GipfelWidget::set_mountain(int m_x, int m_y) {
cur_mountain->y = m_y - center_y;
cur_mountain->label_y = 0;
- damage(4, center_x + x() + old_x - CROSS_SIZE - 1,
- center_y + y() + old_y + old_label_y - CROSS_SIZE - 20,
- MAX(20, cur_mountain->label_x) + 2,
+ damage(4, center_x + x() + old_x - 2*CROSS_SIZE - 1,
+ center_y + y() + old_y + old_label_y - 2*CROSS_SIZE - 20,
+ MAX(20, cur_mountain->label_x) + 2*CROSS_SIZE + 2,
MAX(20, old_label_y) + 22 );
- damage(4, center_x + x() + cur_mountain->x - CROSS_SIZE - 1,
- center_y + y() + cur_mountain->y + cur_mountain->label_y - CROSS_SIZE - 20,
- MAX(20, cur_mountain->label_x) + 2,
+ damage(4, center_x + x() + cur_mountain->x - 2*CROSS_SIZE - 1,
+ center_y + y() + cur_mountain->y + cur_mountain->label_y - 2*CROSS_SIZE - 20,
+ MAX(20, cur_mountain->label_x) + 2*CROSS_SIZE + 2,
MAX(20, cur_mountain->label_y) + 22 );
return 0;