home · contact · privacy
Optimized WinConf / WinConfDB structure, removed redundant .draw.
[plomrogue] / src / client / misc.h
index bde51e679afeea5beef4276d1c3e562f5f88ac7f..e8497033bcec4a06711caf99655f6022fc47cde6 100644 (file)
@@ -11,6 +11,9 @@
 
 
 
+/* 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.
@@ -22,6 +25,13 @@ 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);