1
1

Removed draw_double_box() function.

Since S-Lang library actually doesn't provide double boxes drawing,
the draw_box() function is used always.
Этот коммит содержится в:
Andrew Borodin 2009-06-07 09:01:10 +04:00
родитель 11a1c151d9
Коммит 3225c15e69
7 изменённых файлов: 10 добавлений и 26 удалений

Просмотреть файл

@ -80,17 +80,6 @@ draw_box (Dlg_head *h, int y, int x, int ys, int xs)
tty_draw_box (h->y + y, h->x + x, ys, xs);
}
/* draw box in window */
void
draw_double_box (Dlg_head *h, int y, int x, int ys, int xs)
{
#ifndef HAVE_SLANG
draw_box (h, y, x, ys, xs);
#else
SLsmg_draw_double_box (h->y + y, h->x + x, ys, xs);
#endif /* HAVE_SLANG */
}
void
widget_erase (Widget *w)
{

Просмотреть файл

@ -145,9 +145,6 @@ struct Widget {
/* draw box in window */
void draw_box (Dlg_head *h, int y, int x, int ys, int xs);
/* doubled line if possible */
void draw_double_box (Dlg_head *h, int y, int x, int ys, int xs);
/* Flags for create_dlg: */
#define DLG_REVERSE (1 << 5) /* Tab order is opposite to the add order */
#define DLG_WANT_TAB (1 << 4) /* Should the tab key be sent to the dialog? */

Просмотреть файл

@ -58,8 +58,8 @@ static void info_box (Dlg_head *h, struct WInfo *info)
tty_set_normal_attrs ();
tty_setcolor (NORMAL_COLOR);
widget_erase (&info->widget);
draw_double_box (h, info->widget.y, info->widget.x,
info->widget.lines, info->widget.cols);
draw_box (h, info->widget.y, info->widget.x,
info->widget.lines, info->widget.cols);
}
static void

Просмотреть файл

@ -788,9 +788,9 @@ static void
show_dir (WPanel *panel)
{
set_colors (panel);
draw_double_box (panel->widget.parent,
panel->widget.y, panel->widget.x,
panel->widget.lines, panel->widget.cols);
draw_box (panel->widget.parent,
panel->widget.y, panel->widget.x,
panel->widget.lines, panel->widget.cols);
if (show_mini_info && !slow_terminal) {
widget_move (&panel->widget, llines (panel) + 2, 0);

Просмотреть файл

@ -966,8 +966,8 @@ tree_frame (Dlg_head *h, WTree *tree)
tty_setcolor (NORMAL_COLOR);
widget_erase ((Widget*) tree);
if (tree->is_panel) {
draw_double_box (h, tree->widget.y, tree->widget.x, tree->widget.lines,
tree->widget.cols);
draw_box (h, tree->widget.y, tree->widget.x, tree->widget.lines,
tree->widget.cols);
if (show_mini_info)
tty_draw_hline (tree->widget.y + tlines (tree) + 1,

Просмотреть файл

@ -34,6 +34,4 @@ int getch (void);
#define COLS SLtt_Screen_Cols
#define LINES SLtt_Screen_Rows
#define SLsmg_draw_double_box(r, c, dr, dc) SLsmg_draw_box ((r), (c), (dr), (dc))
#endif /* MC_TTY_SLANG_H */

Просмотреть файл

@ -2194,9 +2194,9 @@ view_display_clean (WView *view)
tty_setcolor (NORMAL_COLOR);
widget_erase ((Widget *) view);
if (view->dpy_frame_size != 0) {
draw_double_box (view->widget.parent, view->widget.y,
view->widget.x, view->widget.lines,
view->widget.cols);
draw_box (view->widget.parent, view->widget.y,
view->widget.x, view->widget.lines,
view->widget.cols);
}
}