diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | df00741c26228058caf7c6e7b03759bff5881dd6 (patch) | |
tree | 466965bade50808e32d6314d0bd76a04edcb56e2 | |
parent | 0ccfeea985d21a6fa84ede7aaa461b9075ca0aa6 (diff) |
Avoid direct access to Term->icky_corner
-rw-r--r-- | src/main-gcu.c | 4 | ||||
-rw-r--r-- | src/z-term.c | 5 | ||||
-rw-r--r-- | src/z-term.h | 1 |
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" */ |