diff options
author | Paul Gilbert | 2019-01-15 21:03:02 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-15 21:03:02 -0800 |
commit | 796abef91b2117bd6e49d7e1538a2ba11f4dbffc (patch) | |
tree | 6184806f43ebe28b60e5280a0ecd242584f68516 /engines/glk/frotz | |
parent | 07b4495e2b184496be4c24c9cfe041b4717df03e (diff) | |
download | scummvm-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/frotz')
-rw-r--r-- | engines/glk/frotz/glk_interface.cpp | 11 |
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) { |