Add render_deco_height()

This commit is contained in:
oblique
2013-02-08 15:23:50 +02:00
committed by Michael Stapelberg
parent b565bfca13
commit b0e2be9a6b
4 changed files with 19 additions and 6 deletions

@ -1175,7 +1175,7 @@ void con_set_border_style(Con *con, int border_style, int border_width) {
con->current_border_width = border_width;
bsr = con_border_style_rect(con);
int deco_height =
(con->border_style == BS_NORMAL ? config.font.height + 5 : 0);
(con->border_style == BS_NORMAL ? render_deco_height() : 0);
con->rect.x -= bsr.x;
con->rect.y -= bsr.y;