diff options
author | Eugene Sandulenko | 2006-11-08 10:06:42 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-08 10:06:42 +0000 |
commit | 3be9c44dc40d5fa8af3bed4c64aa1a717fd44e52 (patch) | |
tree | 75f7ef6ec3ff319ba9e851610afb30544ca03372 /engines/scumm | |
parent | efd5e8bfb6245925552e909c2d7a409098bf4a29 (diff) | |
download | scummvm-rg350-3be9c44dc40d5fa8af3bed4c64aa1a717fd44e52.tar.gz scummvm-rg350-3be9c44dc40d5fa8af3bed4c64aa1a717fd44e52.tar.bz2 scummvm-rg350-3be9c44dc40d5fa8af3bed4c64aa1a717fd44e52.zip |
Fix bug #1590596: "HE: When 3x graphics are choosen, F5 crashes game"
svn-id: r24656
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/scumm.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 7b4331bca6..ba6e7ab50a 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1023,6 +1023,16 @@ int ScummEngine::init() { initCommonGFX(defaultTo1XScaler); _system->endGFXTransaction(); + // It may happen that we have 3x scaler in launcher (960xY) and then 640x480 + // game will be forced to 1x. At this stage GUI will not be aware of + // resolution change, so widgets will be off screen. This forces it to + // recompute + // + // Fixes bug #1590596: "HE: When 3x graphics are choosen, F5 crashes game" + if (defaultTo1XScaler) { + g_gui.screenChange(); + } + setupScumm(); readIndexFile(); |