X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Fwindows.h;h=46525132bd4f3611fc727738e7896462283a3473;hb=1c20e240bb704cddfa80b60dfa20863218edc6d8;hp=7c0ef77ca80cc35c4fff1571766f180236771865;hpb=dd9d65ee727ac7e95801da0f8b5bae7009811802;p=plomrogue diff --git a/src/client/windows.h b/src/client/windows.h index 7c0ef77..4652513 100644 --- a/src/client/windows.h +++ b/src/client/windows.h @@ -66,11 +66,10 @@ struct WinMeta -/* Initialize ncurses and world.wmeta on terminal screen. All struct members - * initialize to 0, except for .screen, the newly created virtual screen .pad - * and its .padsize (height: that of the terminal screen; width: 1 cell). +/* Initialize world.wmeta and ncurses on terminal screen. All struct members + * initialize to 0 (.pad = NULL), except for .screen (= initscr()). */ -extern void init_win_meta(); +extern void init_wmeta_and_ncurses(); /* Initialize a Win child "wp" of "wmeta" to "title", "height" and "width" and * appoint "func"() as its .draw. Initialize other members to 0. @@ -78,16 +77,13 @@ extern void init_win_meta(); * Pass 0 for "width" to make the window as wide as the terminal screen. Pass 0 * for "height" for the maximum allowed height: one cell smaller than that of * the terminal screen. Pass negative values for either of them to make the - * window width/height so many cells smaller than what 0 would set. The maximum - * allowed height is also applied for positive height values that exceed it or - * negative values that would reduce the window height to less than 1 cell. + * window width/height so many cells smaller than what 0 would set. Values that + * that would reduce the window height or width to less than 1 cell according to + * the aforementioned rules set the height/width as if they were set to 0. */ extern void init_win(struct Win ** wp, char * title, int16_t height, int16_t width, void * func); -/* Free memory initialized below world.wmeta and run endwin(). */ -extern void free_winmeta_and_endwin(); - /* Free memory initianized Win structs. */ extern void free_win(struct Win * win);