home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
7DRL: Let animals proliferate on all open map cells, not just soil.
[plomrogue]
/
src
/
client
/
windows.h
diff --git
a/src/client/windows.h
b/src/client/windows.h
index dd03d8b151138079c0dbd1884c632be391b0d026..91f3f7bf454ee33142a9e893f11c23bb0b35713b 100644
(file)
--- a/
src/client/windows.h
+++ b/
src/client/windows.h
@@
-1,4
+1,8
@@
/* src/client/windows.h
/* src/client/windows.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* A tiled window manager for the terminal.
*
*
* A tiled window manager for the terminal.
*
@@
-26,11
+30,16
@@
#include <ncurses.h> /* WINDOW, chtype */
#include <stdint.h> /* uint8_t, int16_t, uint16_t, uint32_t */
#include <ncurses.h> /* WINDOW, chtype */
#include <stdint.h> /* uint8_t, int16_t, uint16_t, uint32_t */
-#include "../common/yx_uint16.h" /* yx_uint16 struct */
#include "keybindings.h" /* struct KeyBindingDB */
#include "keybindings.h" /* struct KeyBindingDB */
+struct yx_uint16
+{
+ uint16_t y;
+ uint16_t x;
+};
+
struct WinDB
{
WINDOW * t_screen; /* ncurses' pointer to the terminal screen */
struct WinDB
{
WINDOW * t_screen; /* ncurses' pointer to the terminal screen */
@@
-51,7
+60,7
@@
struct Win
struct yx_uint16 target_center; /* saves .center when toggling .view */
struct yx_uint16 frame_size; /* size of window/frame to see winmap through*/
struct yx_uint16 start; /* upper left corner of window in v_screen */
struct yx_uint16 target_center; /* saves .center when toggling .view */
struct yx_uint16 frame_size; /* size of window/frame to see winmap through*/
struct yx_uint16 start; /* upper left corner of window in v_screen */
- struct yx_uint16 center; /* win
n
ap cell to center frame on if < winmap */
+ struct yx_uint16 center; /* win
m
ap cell to center frame on if < winmap */
struct yx_uint16 winmap_size; /* delimits .winmap, sorts it into lines */
chtype * winmap; /* window content in sequence of chtype's to write */
int16_t target_height; /* window size / .frame_size description in config */
struct yx_uint16 winmap_size; /* delimits .winmap, sorts it into lines */
chtype * winmap; /* window content in sequence of chtype's to write */
int16_t target_height; /* window size / .frame_size description in config */