X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Fclient%2Fmisc.h;h=01e248804029a9102be50dafebbd84774f051034;hb=fb9b40f0535b28b37b64983240c4b78e74ee9a2c;hp=7ca1137b1c2f6b6a0d1c6117c2212161bc6a1b71;hpb=bdd8f79ade82ef1a7445580fa61a53fd1a5311db;p=plomrogue diff --git a/src/client/misc.h b/src/client/misc.h index 7ca1137..01e2488 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -11,15 +11,27 @@ +/* Parses command line argument -i into client configuration. */ +extern void obey_argv(int argc, char * argv[]); + /* Save / load (init) / unload (free/dissolve) / reload interface configuration - * data, world.wmeta.pad (initialized before opening any windows to the height - * of the terminal screen and a width of 1) and window chains. + * data, world.wins.pad (initialized before opening any windows to the height of + * the terminal screen and a width of 1) and window chains. + * + * Note that reload_interface_conf() also calls map_center(). */ extern void save_interface_conf(); extern void load_interface_conf(); extern void unload_interface_conf(); extern void reload_interface_conf(); +/* The SIGWINCH handler winch_called() merely sets world.winch to 1. This info + * is used by io_loop() to call reset_windows(), which adapts the currently + * loaded interface configuration to the new screen size. + */ +extern void winch_called(); +extern void reset_windows(); + /* Return offset into center map of "mapsize" on "position" in "framesize". */ extern uint16_t center_offset(uint16_t position, uint16_t mapsize, uint16_t framesize);