aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/window_text_grid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gargoyle/window_text_grid.cpp')
-rw-r--r--engines/gargoyle/window_text_grid.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/gargoyle/window_text_grid.cpp b/engines/gargoyle/window_text_grid.cpp
index d9550bfab8..b249223712 100644
--- a/engines/gargoyle/window_text_grid.cpp
+++ b/engines/gargoyle/window_text_grid.cpp
@@ -645,6 +645,13 @@ void TextGridWindow::redraw() {
}
}
+void TextGridWindow::getSize(glui32 *width, glui32 *height) {
+ if (width)
+ *width = _bbox.width() / g_conf->_cellW;
+ if (height)
+ *height = _bbox.height() / g_conf->_cellH;
+}
+
/*--------------------------------------------------------------------------*/
void TextGridWindow::TextGridRow::resize(size_t newSize) {