From: Heng Li Date: Thu, 16 Jul 2009 22:30:11 +0000 (+0000) Subject: * samtools-0.1.5-9 (r405) X-Git-Url: https://git.donarmstrong.com/?p=samtools.git;a=commitdiff_plain;h=a5a8f24beaa6b65b40f29d89a62cf2c643100c6d * samtools-0.1.5-9 (r405) * improved the compatibility with PDCurses a little bit --- diff --git a/Makefile b/Makefile index 450b3ab..40b35ae 100644 --- 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 diff --git a/bam_tview.c b/bam_tview.c index 2442994..c6a31cd 100644 --- a/bam_tview.c +++ b/bam_tview.c @@ -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 970927c..fb000a6 100644 --- 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[]);