home · contact · privacy
Grew number of monsters / items.
[plomrogue] / src / windows.h
index c194907b6c41046fc784b76d367829a506d7d3f8..7714c6cfa29050390dd4953f29fe9f6bbf0d575a 100644 (file)
@@ -1,6 +1,9 @@
-struct yx_uint16 {
-  uint16_t y;
-  uint16_t x; };
+#ifndef WINDOWS_H
+#define WINDOWS_H
+
+#include <stdint.h>
+#include <ncurses.h>
+#include "yx_uint16.h"
 
 struct Frame {
   WINDOW * curses_win;
@@ -29,7 +32,9 @@ extern void append_win (struct WinMeta *, struct Win *);
 extern void suspend_win (struct WinMeta *, struct Win *);
 extern void draw_scroll_hint (struct Frame *, uint16_t, uint32_t, char);
 extern void draw_all_wins (struct WinMeta *);
-extern void resize_active_win (struct WinMeta *, uint16_t, uint16_t);
+extern void resize_active_win (struct WinMeta *, struct yx_uint16);
 extern void cycle_active_win (struct WinMeta *, char);
 extern void shift_active_win (struct WinMeta *, char);
 extern void reset_pad_offset (struct WinMeta *, uint16_t);
+
+#endif