From 71c170bb136ab94d70eb10d55cfd897dc89c9682 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 22 Feb 2006 22:40:53 +0000 Subject: Initial version of Cinematique engine evo 1. svn-id: r20813 --- engines/cine/bg_list.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 engines/cine/bg_list.cpp (limited to 'engines/cine/bg_list.cpp') diff --git a/engines/cine/bg_list.cpp b/engines/cine/bg_list.cpp new file mode 100644 index 0000000000..1d3dab6cb1 --- /dev/null +++ b/engines/cine/bg_list.cpp @@ -0,0 +1,47 @@ +/* ScummVM - Scumm Interpreter + * Copyright (C) 2006 The ScummVM project + * + * cinE Engine is (C) 2004-2005 by CinE Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#include "cine/cine.h" + +void createVar9Element(s16 objIdx, s16 param); + +void addSpriteFilledToBGList(s16 idx) { + s16 x; + s16 y; + s16 width; + s16 height; + + x = objectTable[idx].x; + y = objectTable[idx].y; + + width = animDataTable[objectTable[idx].frame].width; + height = animDataTable[objectTable[idx].frame].var2; + + if (animDataTable[objectTable[idx].frame].ptr1) { + gfxFillSprite(animDataTable[objectTable[idx].frame].ptr1, + width / 2, height, page2Raw, x, y); + } + + createVar9Element(idx, 1); +} -- cgit v1.2.3