From 2ee362f40d908f817bb23a4af43d4021d3732bdc Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 23 Oct 2005 21:15:12 +0200 Subject: fix damage() code in GipfelWidget --- src/GipfelWidget.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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; -- cgit v1.2.3