summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
committerBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
commitdf00741c26228058caf7c6e7b03759bff5881dd6 (patch)
tree466965bade50808e32d6314d0bd76a04edcb56e2
parent0ccfeea985d21a6fa84ede7aaa461b9075ca0aa6 (diff)
Avoid direct access to Term->icky_corner
-rw-r--r--src/main-gcu.c4
-rw-r--r--src/z-term.c5
-rw-r--r--src/z-term.h1
3 files changed, 7 insertions, 3 deletions
diff --git a/src/main-gcu.c b/src/main-gcu.c
index f9b475c3..26a43e42 100644
--- a/src/main-gcu.c
+++ b/src/main-gcu.c
@@ -751,9 +751,7 @@ static errr term_data_init_gcu(term_data *td, int rows, int cols, int y, int x)
/* Initialize the term */
term_init(t, cols, rows, 256);
-
- /* Avoid bottom right corner */
- t->icky_corner = TRUE;
+ term_init_icky_corner(t);
/* Set some hooks */
t->init_hook = Term_init_gcu;
diff --git a/src/z-term.c b/src/z-term.c
index a936cae8..0a4dc2ae 100644
--- a/src/z-term.c
+++ b/src/z-term.c
@@ -1975,3 +1975,8 @@ errr term_init(term *t, int w, int h, int k)
/* Success */
return (0);
}
+
+void term_init_icky_corner(term *t)
+{
+ t->icky_corner = TRUE;
+}
diff --git a/src/z-term.h b/src/z-term.h
index 69d31eee..5ad007e2 100644
--- a/src/z-term.h
+++ b/src/z-term.h
@@ -236,6 +236,7 @@ errr Term_activate(term *t);
errr term_nuke(term *t);
errr term_init(term *t, int w, int h, int k);
+void term_init_icky_corner(term *t);
#ifdef __cplusplus
} /* extern "C" */