X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fwindows.h;h=e55644475320767a1744e5abd7ba1c12e6a94d98;hb=32de5451545b3ba43c1dbd379d2a5e312d7e51dd;hp=3a6ebd5cabf7c529cfae45ec06b21d149b689b0a;hpb=598eeab09f9c377e65f886b147e037e7972dadf9;p=plomrogue
diff --git a/src/windows.h b/src/windows.h
index 3a6ebd5..e556444 100644
--- a/src/windows.h
+++ b/src/windows.h
@@ -148,17 +148,21 @@ 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);
-/* Draw virtual screen including all windows. Also add scroll hints (a line
- * stating that there is more to see on scrolling further into a certain
- * direction) for where the edges of the terminal screen hit non-edges of and
- * inside the virtual screen. Then update the terminal screen.
+/* Draw virtual screen including all windows. Also add scroll hints (see comment
+ * on draw_scroll_hint()) for where the edges of the terminal screen hit
+ * non-edges of and inside the virtual screen. Then update the terminal screen.
+ *
+ * Returns 0 on success, 1 on error (of scroll hint text memory allocation).
*/
-extern void draw_all_wins(struct WinMeta * wmeta);
+extern uint8_t draw_all_wins(struct WinMeta * wmeta);