X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpicsmap.c;h=6192de3a57e876f01a8f2ab1f8118cde82631afe;hp=597f4a82b80387815b080871da19cb610e09c6f6;hb=b0bdfbb1c78346047c54d8e516a104fcff586e52;hpb=8d3ea9021573747ecd129228ba7782a03243f62c diff --git a/test/picsmap.c b/test/picsmap.c index 597f4a82..6192de3a 100644 --- a/test/picsmap.c +++ b/test/picsmap.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: picsmap.c,v 1.112 2017/11/26 00:10:57 tom Exp $ + * $Id: picsmap.c,v 1.115 2017/12/26 22:20:11 tom Exp $ * * Author: Thomas E. Dickey * @@ -1160,6 +1160,7 @@ parse_xpm(char **data) break; } num_colors++; + free(list[reading_last]); list[reading_last] = strdup(arg1); if ((by_name = lookup_rgb(arg3)) != 0) { found = gather_c_values(by_name->value); @@ -1473,7 +1474,8 @@ show_picture(PICS_HEAD * pics) int my_pair, my_color; debugmsg("called show_picture"); -#if USE_EXTENDED_COLORS + logmsg("...using %dx%d screen", LINES, COLS); +#if HAVE_RESET_COLOR_PAIRS reset_color_pairs(); #elif HAVE_CURSCR wclear(curscr);