aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-04-14 10:37:34 +0000
committerTravis Howell2006-04-14 10:37:34 +0000
commit601820548c1afad2ad2522d11fe4c262a5770c7f (patch)
tree945e36155f4132d34fabdc0de1007d85ba961a8e
parent1a629682a5fc74850ade0d39fde6c642a60bd2c4 (diff)
downloadscummvm-rg350-601820548c1afad2ad2522d11fe4c262a5770c7f.tar.gz
scummvm-rg350-601820548c1afad2ad2522d11fe4c262a5770c7f.tar.bz2
scummvm-rg350-601820548c1afad2ad2522d11fe4c262a5770c7f.zip
Avoid possible regression in set_video_mode_internal() for Simon1
svn-id: r21884
-rw-r--r--engines/simon/simon.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 0ce9807910..c072c646d4 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -2298,9 +2298,11 @@ void SimonEngine::set_video_mode_internal(uint mode, uint vga_res_id) {
b += sizeof(ImageHeader_Simon);
}
- if ((getGameType() == GType_SIMON1) && vga_res_id == 16300) {
- dx_clear_attached_from_top(134);
- _usePaletteDelay = true;
+ if (getGameType() == GType_SIMON1) {
+ if (vga_res_id == 16300) {
+ dx_clear_attached_from_top(134);
+ _usePaletteDelay = true;
+ }
} else {
_scrollX = 0;
_scrollY = 0;