mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Unification of panel frame painting.
myslang.h: modified definition of ACS_LTEE symbol. Added definition of ACS_RTEE symbol. screen.c (show_dir): paint left and right symbols of mini infor separator as for S-Lang library as for NCurses one.
This commit is contained in:
parent
6ecea97973
commit
12b1081c64
@ -18,12 +18,13 @@ enum {
|
||||
|
||||
#define ACS_VLINE SLSMG_VLINE_CHAR
|
||||
#define ACS_HLINE SLSMG_HLINE_CHAR
|
||||
#define ACS_LTEE SLSMG_LTEE_CHAR
|
||||
#define ACS_RTEE SLSMG_RTEE_CHAR
|
||||
#define ACS_ULCORNER SLSMG_ULCORN_CHAR
|
||||
#define ACS_LLCORNER SLSMG_LLCORN_CHAR
|
||||
#define ACS_URCORNER SLSMG_URCORN_CHAR
|
||||
#define ACS_LRCORNER SLSMG_LRCORN_CHAR
|
||||
|
||||
#define ACS_LTEE 't'
|
||||
#define acs() SLsmg_set_char_set(1)
|
||||
#define noacs() SLsmg_set_char_set (0)
|
||||
#define baudrate() SLang_TT_Baud_Rate
|
||||
|
12
src/screen.c
12
src/screen.c
@ -774,15 +774,13 @@ show_dir (WPanel *panel)
|
||||
panel->widget.y, panel->widget.x,
|
||||
panel->widget.lines, panel->widget.cols);
|
||||
|
||||
#ifdef HAVE_SLANG
|
||||
if (show_mini_info) {
|
||||
SLsmg_draw_object (panel->widget.y + llines (panel) + 2,
|
||||
panel->widget.x, SLSMG_LTEE_CHAR);
|
||||
SLsmg_draw_object (panel->widget.y + llines (panel) + 2,
|
||||
panel->widget.x + panel->widget.cols - 1,
|
||||
SLSMG_RTEE_CHAR);
|
||||
widget_move (&panel->widget, llines (panel) + 2, 0);
|
||||
tty_print_alt_char (ACS_LTEE);
|
||||
widget_move (&panel->widget, llines (panel) + 2,
|
||||
panel->widget.cols - 1);
|
||||
tty_print_alt_char (ACS_RTEE);
|
||||
}
|
||||
#endif /* HAVE_SLANG */
|
||||
|
||||
if (panel->active)
|
||||
attrset (REVERSE_COLOR);
|
||||
|
Loading…
Reference in New Issue
Block a user