aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-08 20:19:53 -0700
committerPaul Gilbert2019-08-08 20:19:53 -0700
commit66f316b567cd1480ba618800fec3e96538a8eb51 (patch)
tree2396d6535118fb35488deaf02c00c444125783c7 /engines/glk
parentc68d17e9ac93e9d7b2ffbc7e4682df55df19574d (diff)
downloadscummvm-rg350-66f316b567cd1480ba618800fec3e96538a8eb51.tar.gz
scummvm-rg350-66f316b567cd1480ba618800fec3e96538a8eb51.tar.bz2
scummvm-rg350-66f316b567cd1480ba618800fec3e96538a8eb51.zip
GLK: FROTZ: Fix drawing graphics in Zork Zero vs Arthur
In Zork Zero, grahpics drawn to window 0 (the text buffer) are always treated as being interleaved with the text. Whereas in Arthur, the title screens are drawn to window 0, so have to be drawn to the background
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/processor_windows.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/glk/frotz/processor_windows.cpp b/engines/glk/frotz/processor_windows.cpp
index 517296cdd2..3508bca6fc 100644
--- a/engines/glk/frotz/processor_windows.cpp
+++ b/engines/glk/frotz/processor_windows.cpp
@@ -49,8 +49,9 @@ void Processor::z_draw_picture() {
flush_buffer();
Window &win = _wp[_wp._cwin];
- if (_wp._cwin == 0) {
- // Embedded picture within the text area
+ if (_storyId == ZORK_ZERO && _wp._cwin == 0) {
+ // WORKAROUND: Zork Zero has pictures for graphics embedded in the text with specific
+ // co-prdinates. We need to reset it to 0,0 to flag it should be drawn at the cursor
x = y = 0;
} else {
assert(x && y);