ui/ncurses/scr: Add definition for frame offset
[petitboot] / ui / ncurses / nc-scr.c
index e8c5fcabc1b783b46ba051c1db45ec415a50b329..9ad356fa179e17ae60300540210831eca55c3a3f 100644 (file)
@@ -128,7 +128,7 @@ int nc_scr_init(struct nc_scr *scr, enum pb_nc_sig sig, int begin_x,
 
        scr->sub_ncw = derwin(scr->main_ncw,
                LINES - nc_scr_frame_lines,
-               COLS - 1 - begin_x,
+               COLS - nc_scr_frame_cols - begin_x,
                nc_scr_pos_sub,
                begin_x);