home · contact · privacy
Improved checking for only one of savefile / record file existing.
[plomrogue] / src / windows.h
index 98f5d9a870a119c3ed08962b2b7aaf992ec83553..5f6a02406983ad0ddd900fb2d3c2bae1685f9856 100644 (file)
@@ -103,7 +103,7 @@ extern uint8_t init_win_meta(WINDOW * screen, struct WinMeta * wmeta);
  * invisible until appended to the chain of visible windows via append_win().
  */
 extern struct Win init_win(struct WinMeta * wmeta, char * title,
-                           uint16_t height, uint16_t widtht,
+                           uint16_t height, uint16_t width,
                            void * data, void * func);
 
 
@@ -148,8 +148,11 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir);
 
 
 /* Move active window forwards (set dir="f") or backwards (set dir="b"). Wrap
- * around in the window chain if start / end of it is met. */
-extern void shift_active_win(struct WinMeta * wmeta, char dir);
+ * around in the window chain if start / end of it is met.
+ *
+ * Returns 0 on success, 1 on (ncurses window/pad memory allocation) error.
+ */
+extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir);