aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/glk_interface.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp
index 0f08799fc9..1efb751a17 100644
--- a/engines/glk/frotz/glk_interface.cpp
+++ b/engines/glk/frotz/glk_interface.cpp
@@ -291,7 +291,14 @@ bool GlkInterface::os_picture_data(int picture, uint *height, uint *width) {
*height = _pics->size();
return true;
} else {
- return glk_image_get_info(picture, width, height);
+ bool result = glk_image_get_info(picture, width, height);
+
+ int cellW = g_conf->_monoInfo._cellW;
+ int cellH = g_conf->_monoInfo._cellH;
+ *width = (*width + cellW - 1) / cellW;
+ *height = (*height + cellH - 1) / cellH;
+
+ return result;
}
}