]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Expand width of pad
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Wed, 8 Oct 2014 03:03:49 +0000 (14:03 +1100)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Wed, 8 Oct 2014 03:36:00 +0000 (14:36 +1100)
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>
ui/ncurses/nc-config.c

index 551b9d262666bcb078b8aea21d6a5d43963df48a..17cc380172cb15394fb0b3bb73b84cfd270d8d4d 100644 (file)
@@ -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) {