Remove unused ui_draw_line_in

This commit is contained in:
Kp 2017-02-08 23:34:41 +00:00
parent d40c636ecc
commit c16b7763e9
3 changed files with 0 additions and 18 deletions

View file

@ -261,7 +261,6 @@ void Vline(short y1, short y2, short x, uint8_t color);
extern void ui_string_centered( short x, short y, const char * s );
extern void ui_draw_box_out( short x1, short y1, short x2, short y2 );
extern void ui_draw_box_in( short x1, short y1, short x2, short y2 );
extern void ui_draw_line_in( short x1, short y1, short x2, short y2 );
extern void ui_draw_frame( short x1, short y1, short x2, short y2 );
extern void ui_draw_shad( short x1, short y1, short x2, short y2, short c1, short c2 );

View file

@ -182,8 +182,6 @@ int (ui_messagebox)( short xc, short yc, const char * text, const ui_messagebox_
dlg = ui_create_dialog(x, y, width, height, static_cast<dialog_flags>(DF_DIALOG | DF_MODAL), messagebox_handler, m.get());
//ui_draw_line_in( MESSAGEBOX_BORDER, MESSAGEBOX_BORDER, width-MESSAGEBOX_BORDER, height-MESSAGEBOX_BORDER );
y = TEXT_EXTRA_HEIGHT + text_height/2 - 1;
m->width = width;

View file

@ -88,19 +88,4 @@ void ui_draw_box_in( short x1, short y1, short x2, short y2 )
ui_draw_shad( x1+1, y1+1, x2-1, y2-1, CGREY, CBRIGHT );
}
void ui_draw_line_in( short x1, short y1, short x2, short y2 )
{
const uint8_t cgrey = CGREY;
const uint8_t cbright = CBRIGHT;
Hline(x1, x2, y1, cgrey);
Hline(x1, x2-1, y2-1, cgrey);
Vline(y1+1, y2-2, x1, cgrey);
Vline(y1+1, y2-2, x2-1, cgrey);
Hline(x1+1, x2-1, y1+1, cbright);
Hline(x1, x2, y2, cbright);
Vline(y1+2, y2-2, x1+1, cbright);
Vline(y1+1, y2-1, x2, cbright);
}
}