From 796abef91b2117bd6e49d7e1538a2ba11f4dbffc Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 15 Jan 2019 21:03:02 -0800 Subject: GLK: FROTZ: Route pictures drawn in window 0 to the text buffer window --- engines/glk/frotz/glk_interface.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'engines/glk') 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) { -- cgit v1.2.3