diff options
author | Paul Gilbert | 2017-03-28 22:31:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-03-28 22:31:19 -0400 |
commit | 581b2c84b83f7ab491f10b122662a1d6de62060f (patch) | |
tree | 0ba03bcd50cbaaf271d0144b10ec203bf38553d9 /engines/titanic | |
parent | b2cddceae69c677fcaaa3f1e447ff2bb05fd477a (diff) | |
download | scummvm-rg350-581b2c84b83f7ab491f10b122662a1d6de62060f.tar.gz scummvm-rg350-581b2c84b83f7ab491f10b122662a1d6de62060f.tar.bz2 scummvm-rg350-581b2c84b83f7ab491f10b122662a1d6de62060f.zip |
TITANIC: Workaround original bug in CStarView fn18
The original accessed the raw pixels ptr of a video surface after
it had been unlocked
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/star_control/star_view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp index da4ea20327..60c02b1af8 100644 --- a/engines/titanic/star_control/star_view.cpp +++ b/engines/titanic/star_control/star_view.cpp @@ -429,11 +429,11 @@ void CStarView::fn18(CStarControlSub12 *sub12) { _videoSurface2->clear(); _videoSurface2->lock(); _starField->render(_videoSurface2, sub12); - _videoSurface2->unlock(); _starField->set4(old4); _starField->set54(oldVal); _starField->fn6(_videoSurface2, sub12); + _videoSurface2->unlock(); } } } |