From 581b2c84b83f7ab491f10b122662a1d6de62060f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 28 Mar 2017 22:31:19 -0400 Subject: TITANIC: Workaround original bug in CStarView fn18 The original accessed the raw pixels ptr of a video surface after it had been unlocked --- engines/titanic/star_control/star_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/titanic') 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(); } } } -- cgit v1.2.3