diff --git a/lib/tty/tty-ncurses.c b/lib/tty/tty-ncurses.c
index 5cddf5059..2c117ef4b 100644
a
|
b
|
tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) |
560 | 560 | void |
561 | 561 | tty_colorize_area (int y, int x, int rows, int cols, int color) |
562 | 562 | { |
| 563 | #ifdef ENABLE_SHADOWS |
563 | 564 | cchar_t *ctext; |
564 | 565 | wchar_t wch[10]; /* TODO not sure if the length is correct */ |
565 | 566 | attr_t attrs; |
… |
… |
tty_colorize_area (int y, int x, int rows, int cols, int color) |
585 | 586 | } |
586 | 587 | |
587 | 588 | g_free (ctext); |
| 589 | #else |
| 590 | (void) y; |
| 591 | (void) x; |
| 592 | (void) rows; |
| 593 | (void) cols; |
| 594 | (void) color; |
| 595 | #endif /* ENABLE_SHADOWS */ |
588 | 596 | } |
589 | 597 | |
590 | 598 | /* --------------------------------------------------------------------------------------------- */ |
diff --git a/lib/tty/tty-ncurses.h b/lib/tty/tty-ncurses.h
index d75df9533..8feb17ccd 100644
a
|
b
|
|
30 | 30 | #define NCURSES_CONST const |
31 | 31 | #endif |
32 | 32 | |
| 33 | /* do not draw shadows if NCurses is built with --disable-widec */ |
| 34 | #if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR |
| 35 | #define ENABLE_SHADOWS 1 |
| 36 | #endif |
| 37 | |
33 | 38 | /*** typedefs(not structures) and defined constants **********************************************/ |
34 | 39 | |
35 | 40 | /*** enums ***************************************************************************************/ |
diff --git a/lib/tty/tty-slang.h b/lib/tty/tty-slang.h
index c36785ffc..15fd00a94 100644
a
|
b
|
|
27 | 27 | #define COLS SLtt_Screen_Cols |
28 | 28 | #define LINES SLtt_Screen_Rows |
29 | 29 | |
| 30 | #define ENABLE_SHADOWS 1 |
| 31 | |
30 | 32 | /*** enums ***************************************************************************************/ |
31 | 33 | |
32 | 34 | enum |
diff --git a/src/filemanager/boxes.c b/src/filemanager/boxes.c
index ed16d04dd..4c1f5ba84 100644
a
|
b
|
appearance_box_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm |
280 | 280 | switch (msg) |
281 | 281 | { |
282 | 282 | case MSG_INIT: |
| 283 | #ifdef ENABLE_SHADOWS |
283 | 284 | if (!tty_use_colors ()) |
| 285 | #endif |
284 | 286 | { |
285 | 287 | Widget *shadow; |
286 | 288 | |