diff --git a/common/include/ui.h b/common/include/ui.h index 02667b7ee..db8cea084 100644 --- a/common/include/ui.h +++ b/common/include/ui.h @@ -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 ); diff --git a/common/ui/message.cpp b/common/ui/message.cpp index 056c6ae19..ec8cdfbb6 100644 --- a/common/ui/message.cpp +++ b/common/ui/message.cpp @@ -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(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; diff --git a/common/ui/uidraw.cpp b/common/ui/uidraw.cpp index e116e71bf..b2012f1e9 100644 --- a/common/ui/uidraw.cpp +++ b/common/ui/uidraw.cpp @@ -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); -} - }