]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.5-9 (r405)
authorHeng Li <lh3@live.co.uk>
Thu, 16 Jul 2009 22:30:11 +0000 (22:30 +0000)
committerHeng Li <lh3@live.co.uk>
Thu, 16 Jul 2009 22:30:11 +0000 (22:30 +0000)
 * improved the compatibility with PDCurses a little bit

Makefile
bam_tview.c
bamtk.c

index 450b3abbb83876089fbf1da30df600431a272a6e..40b35ae5440b5a0521c7296f6dd2b2f9e9b3ae92 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 CC=                    gcc
 CFLAGS=                -g -Wall -O2 #-m64 #-arch ppc
-DFLAGS=                -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1
+DFLAGS=                -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=2
 LOBJS=         bgzf.o kstring.o bam_aux.o bam.o bam_import.o sam.o bam_index.o \
                        bam_pileup.o bam_lpileup.o bam_md.o glf.o razf.o faidx.o knetfile.o     \
                        bam_sort.o
@@ -11,7 +11,7 @@ PROG=         samtools
 INCLUDES=
 SUBDIRS=       . misc
 LIBPATH=
-LIBCURSES=     -lcurses # -lXCurses
+LIBCURSES=     -lXCurses # -lXCurses
 
 .SUFFIXES:.c .o
 
index 2442994d3708912daf0823c1114eb0368d6961de..c6a31cd7fc73d20797d3c1d7e1d0fd4545cf8942 100644 (file)
@@ -192,11 +192,8 @@ tview_t *tv_init(const char *fn, const char *fn_fa)
        clear();
        noecho();
        cbreak();
-#ifdef NCURSES_VERSION
+       tv->mrow = 24; tv->mcol = 80;
        getmaxyx(stdscr, tv->mrow, tv->mcol);
-#else
-       tv->mrow = 80; tv->mcol = 40;
-#endif
        tv->wgoto = newwin(3, TV_MAX_GOTO + 10, 10, 5);
        tv->whelp = newwin(27, 40, 5, 5);
        tv->color_for = TV_COLOR_MAPQ;
diff --git a/bamtk.c b/bamtk.c
index 970927c5aa8a6c8a03b84bc4c3614b4334bf662a..fb000a6425f3ea7246d6273e73d0f74cb6701166 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -4,7 +4,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.5-8 (r404)"
+#define PACKAGE_VERSION "0.1.5-9 (r405)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);