X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fwindows.h;h=7714c6cfa29050390dd4953f29fe9f6bbf0d575a;hb=bcc3d39d6871e1ef97c2f439d941ae2b9009ff98;hp=c194907b6c41046fc784b76d367829a506d7d3f8;hpb=e9d8b1aca776341c9cdaa2ea6406336661d82a76;p=plomrogue
diff --git a/src/windows.h b/src/windows.h
index c194907..7714c6c 100644
--- a/src/windows.h
+++ b/src/windows.h
@@ -1,6 +1,9 @@
-struct yx_uint16 {
- uint16_t y;
- uint16_t x; };
+#ifndef WINDOWS_H
+#define WINDOWS_H
+
+#include
+#include
+#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