aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-15 21:03:02 -0800
committerPaul Gilbert2019-01-15 21:03:02 -0800
commit796abef91b2117bd6e49d7e1538a2ba11f4dbffc (patch)
tree6184806f43ebe28b60e5280a0ecd242584f68516 /engines/glk
parent07b4495e2b184496be4c24c9cfe041b4717df03e (diff)
downloadscummvm-rg350-796abef91b2117bd6e49d7e1538a2ba11f4dbffc.tar.gz
scummvm-rg350-796abef91b2117bd6e49d7e1538a2ba11f4dbffc.tar.bz2
scummvm-rg350-796abef91b2117bd6e49d7e1538a2ba11f4dbffc.zip
GLK: FROTZ: Route pictures drawn in window 0 to the text buffer window
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/glk_interface.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp
index 46a6caa707..14047f1eb5 100644
--- a/engines/glk/frotz/glk_interface.cpp
+++ b/engines/glk/frotz/glk_interface.cpp
@@ -496,9 +496,14 @@ void GlkInterface::showBeyondZorkTitle() {
}
void GlkInterface::os_draw_picture(int picture, const Common::Point &pos) {
- glk_image_draw(_wp._background, picture,
- (pos.x - 1) * g_conf->_monoInfo._cellW,
- (pos.y - 1) * g_conf->_monoInfo._cellH);
+ if (cwin == 0) {
+ // Picture embedded within the lower text area
+ glk_image_draw(_wp._lower, picture, 0, 0);
+ } else {
+ glk_image_draw(_wp._background, picture,
+ (pos.x - 1) * g_conf->_monoInfo._cellW,
+ (pos.y - 1) * g_conf->_monoInfo._cellH);
+ }
}
void GlkInterface::os_draw_picture(int picture, const Common::Rect &r) {