X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=viewer.c;h=54946703c2f26f6dd84d5e6fc8e8fc33f7d77621;hb=11bf64f833379a70fc3f9b2adb365312810a26c2;hp=7f1fb851677c32b8f80ff78e7192f45cfeb761fc;hpb=2d18e220e78d631bebef54e1cfa6bc3f5a1ddb3f;p=smdp.git diff --git a/viewer.c b/viewer.c index 7f1fb85..5494670 100644 --- a/viewer.c +++ b/viewer.c @@ -116,9 +116,11 @@ int ncurses_display(deck_t *deck, int notrans, int nofade) { start_color(); use_default_colors(); - if(notrans) trans = 0; // 0 is black + if(notrans) trans = 0; // black in 8 color mode if(COLORS == 256) { + if(notrans) trans = 16; // black in 256 color mode + // 256 color mode init_pair(CP_WHITE, 255, trans); init_pair(CP_BLUE, 123, trans); @@ -317,7 +319,6 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols) { if(line->text->text) { int offset = 0; // text offset - offset = next_nonblank(line->text, 0); // IS_CODE if(CHECK_BIT(line->bits, IS_CODE)) {