]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/pbt-scr.c
ui/ncurses: Increase height of boot-editor pad
[petitboot] / ui / twin / pbt-scr.c
index b774f194693932572f7d1e23db9ebc7cb306f05e..e10cab10e9c9b817d8ae06a5c6a9da27b6c8fac7 100644 (file)
@@ -402,8 +402,8 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx,
 #if !defined(HAVE_LIBTWIN_TWIN_X11_H)
                assert(0);
 #else
-               scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(0), width,
-                       height, 0);
+               scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(NULL),
+                       width, height, 0);
 
                if (!scr->twin_ctx.x11) {
                        pb_log("%s: twin_x11_create_ext failed.\n", __func__);