mouse click offset in help
- From: Egmont Koblinger <egmont uhulinux hu>
- To: mc-devel gnome org
- Subject: mouse click offset in help
- Date: Thu, 11 Nov 2004 18:07:09 +0100
Hi,
In the help screen (F1) the rectangular area which accepts mouse click for a
link is shiftedtwo characters to the left. This means that the last two
letters of a link don't accept mouse click, however, two characters left
from the link do.
Attached patch fixes both for 4.6.0 and 2004-11-04-15 snapshot.
--
Egmont
diff -Naur mc-4.6.0.orig/src/help.c mc-4.6.0/src/help.c
--- mc-4.6.0.orig/src/help.c 2002-11-13 05:01:05.000000000 +0100
+++ mc-4.6.0/src/help.c 2004-11-11 02:24:47.000000000 +0100
@@ -389,11 +389,11 @@
}
else
attrset (HELP_LINK_COLOR);
- start_link_area (col, line, p);
+ start_link_area (col + 2, line, p);
break;
case CHAR_LINK_POINTER:
painting = 0;
- end_link_area (col - 1, line);
+ end_link_area (col + 1, line);
break;
case CHAR_LINK_END:
painting = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]