summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-config.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-10-08 14:03:49 +1100
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-10-08 14:36:00 +1100
commit67eaf20d50922e9f745e01a8d6d99fb9c3ea3bec (patch)
tree895b60838b522d90d8ab956f8681cbd27981197b /ui/ncurses/nc-config.c
parentcd94ab94766ae863467195324fb84b3d020c96cf (diff)
downloadtalos-petitboot-67eaf20d50922e9f745e01a8d6d99fb9c3ea3bec.tar.gz
talos-petitboot-67eaf20d50922e9f745e01a8d6d99fb9c3ea3bec.zip
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 <sam.mj@au1.ibm.com>
Diffstat (limited to 'ui/ncurses/nc-config.c')
-rw-r--r--ui/ncurses/nc-config.c2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud