summaryrefslogtreecommitdiffstats
path: root/src/intrfn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-14 12:20:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-14 12:20:14 +0200
commit0ee4ef1c2578f19177a832ffdffbf91e460d3015 (patch)
tree148c147370c68137998d20fda21fe3a73d3317a9 /src/intrfn.c
parent602688dc89b7baaa86ca9b8c57e548e6d9cc54e1 (diff)
TestDisk: hexdump can use more than 24 lines
Diffstat (limited to 'src/intrfn.c')
-rw-r--r--src/intrfn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index 1029964..47e1c62 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -74,7 +74,7 @@ extern char intr_buffer_screen[MAX_LINES][LINE_LENGTH+1];
extern int intr_nbr_line;
/* Use COLS (actual number of columns) or COLUMNS (number of columns the program has been designed for) ? */
-#define INTER_DIR (LINES-25+16)
+#define INTER_DIR (LINES+16-25)
#define GS_DEFAULT -1
#define GS_key_ESCAPE -2
@@ -482,6 +482,11 @@ void dump_ncurses(const void *nom_dump, unsigned int lng)
touchwin(stdscr);
#endif
}
+#define DUMP_MAX_LINES (LINES+15-25)
+#define DUMP_X 0
+#define DUMP_Y 7
+#define INTER_DUMP_X DUMP_X
+#define INTER_DUMP_Y (LINES+23-25)
void dump(WINDOW *window, const void *nom_dump,unsigned int lng)
{