home · contact · privacy
Use yx_uint16 struct for WinMeta and Win struct size attributes.
[plomrogue] / windows.h
index 3518c372ae4a7078171bb42cfde7fc933788faf6..1f3dfa0fd3d9094be287aabe6a2593e63cf2cfa7 100644 (file)
--- a/windows.h
+++ b/windows.h
@@ -1,3 +1,7 @@
+struct yx_uint16 {
+  uint16_t y;
+  uint16_t x; };
+
 struct WinMeta {
   WINDOW * screen;
   WINDOW * pad;
@@ -5,14 +9,13 @@ struct WinMeta {
   struct Win * chain_start;
   struct Win * chain_end;
   struct Win * active;
-  uint16_t width;
-  uint16_t height; };
+  struct yx_uint16 size; };
 
 struct Win {
   struct Win * prev;
   struct Win * next;
-  uint16_t width;
-  uint16_t height;
+  struct yx_uint16 start;
+  struct yx_uint16 size;
   WINDOW * curses;
   char * title;
   void (* draw) (struct Win *);