diff options
author | Travis Howell | 2003-12-23 08:59:30 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-23 08:59:30 +0000 |
commit | 35be4ef55437cdf80396568eadd8a98741e6e389 (patch) | |
tree | f2d80c163812dc1fd0504e390bc0fc0187f3ee75 /simon/vga.cpp | |
parent | f68194619298c06b72a016bbfb1486154ccdfd26 (diff) | |
download | scummvm-rg350-35be4ef55437cdf80396568eadd8a98741e6e389.tar.gz scummvm-rg350-35be4ef55437cdf80396568eadd8a98741e6e389.tar.bz2 scummvm-rg350-35be4ef55437cdf80396568eadd8a98741e6e389.zip |
Add var to track current subroutine been used.
Add work around to display one section of Simon the Sorcerer 1 introduction in lower half of screen.
svn-id: r11870
Diffstat (limited to 'simon/vga.cpp')
-rw-r--r-- | simon/vga.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp index 095cf199e9..8e60fe335b 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -731,8 +731,16 @@ void SimonEngine::vc_10_draw() { state.surf_pitch = _dx_surface_pitch; { - uint offs = ((vlut[0] - _video_windows[16]) * 2 + state.x) * 8; - uint offs2 = (vlut[1] - _video_windows[17] + state.y); + uint offs, offs2; + // Allow one section of Simon the Sorcerer 1 introduction to be displayed + // in lower half of screen + if (!(_game & GF_SIMON2) && _subroutine == 2926) { + offs = ((vlut[0]) * 2 + state.x) * 8; + offs2 = (vlut[1] + state.y); + } else { + offs = ((vlut[0] - _video_windows[16]) * 2 + state.x) * 8; + offs2 = (vlut[1] - _video_windows[17] + state.y); + } state.surf2_addr += offs + offs2 * state.surf2_pitch; state.surf_addr += offs + offs2 * state.surf_pitch; @@ -1766,7 +1774,12 @@ void SimonEngine::vc_62_palette_thing() { _vc_ptr = vc_ptr_org; } - dx_clear_surfaces(_video_palette_mode == 4 ? 134 : 200); + // Allow one section of Simon the Sorcerer 1 introduction to be displayed + // in lower half of screen + if (!(_game & GF_SIMON2) && _subroutine == 2926) + dx_clear_surfaces(200); + else + dx_clear_surfaces(_video_palette_mode == 4 ? 134 : 200); } if (_game & GF_SIMON2) { if (_next_music_to_play != -1) |