From: Samuel Mendoza-Jonas Date: Wed, 8 Oct 2014 03:03:49 +0000 (+1100) Subject: ui/ncurses: Expand width of pad X-Git-Tag: v1.0.0~96 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=67eaf20d50922e9f745e01a8d6d99fb9c3ea3bec ui/ncurses: Expand width of pad Widgets running over the horizontal width of the pad will cause the screen to blank. Expand the (non-viewable) size of the pad to prevent blanking until shorter translations are available for nc-config. Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c index 551b9d2..17cc380 100644 --- a/ui/ncurses/nc-config.c +++ b/ui/ncurses/nc-config.c @@ -795,7 +795,7 @@ static void config_screen_draw(struct config_screen *screen, if (!screen->pad || getmaxy(screen->pad) < height) { if (screen->pad) delwin(screen->pad); - screen->pad = newpad(height, COLS); + screen->pad = newpad(height, COLS + 10); } if (screen->widgetset) {