From 273b93f3a7edfc641b0756b807ac512b3d97f96b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 18 May 2009 21:45:09 +0000 Subject: Preliminary support for LoL intro demo. svn-id: r40705 --- engines/kyra/script_tim.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'engines/kyra/script_tim.cpp') diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index b13639960c..5c94da4ba8 100644 --- a/engines/kyra/script_tim.cpp +++ b/engines/kyra/script_tim.cpp @@ -405,7 +405,18 @@ TIMInterpreter::Animation *TIMInterpreter::initAnimStruct(int index, const char _drawPage2 = isLoLDemo ? 0 : 8; - uint16 wsaOpenFlags = ((wsaFlags & 0x10) != 0) ? 2 : 0; + uint16 wsaOpenFlags = 0; + if (isLoLDemo) { + if (!(wsaFlags & 0x10)) + wsaOpenFlags |= 1; + } else { + if (wsaFlags & 0x10) + wsaOpenFlags |= 2; + wsaOpenFlags |= 1; + + if (offscreenBuffer == 2) + wsaOpenFlags = 1; + } char file[32]; snprintf(file, 32, "%s.WSA", filename); @@ -461,7 +472,7 @@ TIMInterpreter::Animation *TIMInterpreter::initAnimStruct(int index, const char screen()->updateScreen(); } - anim->wsa->displayFrame(0, x, y, 0, 0); + anim->wsa->displayFrame(0, 0, x, y, 0); } if (wsaFlags & 2) -- cgit v1.2.3