ui/ncurses/scr: Add definition for frame offset
authorJeremy Kerr <jk@ozlabs.org>
Thu, 17 Oct 2013 05:48:35 +0000 (13:48 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 13 Nov 2013 09:31:04 +0000 (17:31 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-scr.c
ui/ncurses/nc-scr.h

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);
 
index 775e8de4e25799ecd0c6d8f8a556617611e217e9..4f9de59f6ce0eff73c743591e2359ec355f9c6f9 100644 (file)
@@ -64,6 +64,7 @@ enum nc_scr_pos {
        nc_scr_pos_status = 1,
 
        nc_scr_frame_lines = 5,
+       nc_scr_frame_cols = 1,
 };
 
 struct nc_frame {