pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed -Wchar-subscripts on isspace() macros
[smdp.git]
/
viewer.c
diff --git
a/viewer.c
b/viewer.c
index
7f1fb85
..
cede301
100644
(file)
--- a/
viewer.c
+++ b/
viewer.c
@@
-4,7
+4,7
@@
* faded in 256 color mode.
* Copyright (C) 2014 Michael Goehler
*
* faded in 256 color mode.
* Copyright (C) 2014 Michael Goehler
*
- * This file is part of m
pd
.
+ * This file is part of m
dp
.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-116,9
+116,11
@@
int ncurses_display(deck_t *deck, int notrans, int nofade) {
start_color();
use_default_colors();
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(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);
// 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
if(line->text->text) {
int offset = 0; // text offset
- offset = next_nonblank(line->text, 0);
// IS_CODE
if(CHECK_BIT(line->bits, IS_CODE)) {
// IS_CODE
if(CHECK_BIT(line->bits, IS_CODE)) {