diff options
Diffstat (limited to 'src/z-term.cc')
-rw-r--r-- | src/z-term.cc | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/z-term.cc b/src/z-term.cc index 80177436..ca658bb4 100644 --- a/src/z-term.cc +++ b/src/z-term.cc @@ -1487,7 +1487,15 @@ void Term_with_active(term *t, std::function<void ()> callback) */ void Term_get_size(int *w, int *h) { - term_get_size(Term, w, h); + if (w) + { + (*w) = Term->wid; + } + + if (h) + { + (*h) = Term->hgt; + } } @@ -1947,16 +1955,3 @@ void term_set_resize_hook(term *t, resize_hook_t *hook) { t->resize_hook = hook; } - -void term_get_size(term *t, int *w, int *h) -{ - if (w) - { - (*w) = t->wid; - } - - if (h) - { - (*h) = t->hgt; - } -} |