Remove unused ui_draw_line_in
This commit is contained in:
parent
d40c636ecc
commit
c16b7763e9
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue