TRECISION: Get rid of llvideo

This commit is contained in:
Strangerke 2021-04-22 22:03:50 +01:00 committed by SupSuper
parent 9c357d1031
commit 8bf2be7b35
6 changed files with 15 additions and 46 deletions

View file

@ -27,8 +27,7 @@ MODULE_OBJS = \
nl/ll/llanim.o \
nl/ll/lldec.o \
nl/ll/llmouse.o \
nl/ll/llscreen.o \
nl/ll/llvideo.o
nl/ll/llscreen.o
# This module can be built as a plugin
ifeq ($(ENABLE_TRECISION), DYNAMIC_PLUGIN)

View file

@ -116,7 +116,6 @@ void ReadExtraObj41D();
void RegenRoom();
void PaintRegenRoom();
void SoundFadIn(int num);
void resetZBuffer(int x1, int y1, int x2, int y2);
} // End of namespace Trecision

View file

@ -1,42 +0,0 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* 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.
*
*/
#include "common/scummsys.h"
#include "trecision/nl/ll/llinc.h"
#include "trecision/trecision.h"
namespace Trecision {
void resetZBuffer(int x1, int y1, int x2, int y2) {
if (x1 > x2 || y1 > y2)
return;
int size = (x2 - x1) * (y2 - y1);
if (size * 2 > ZBUFFERSIZE)
warning("Warning: _zBuffer size %d!\n", size * 2);
int16 *d = g_vm->_zBuffer;
for (int i = 0; i < size; ++i)
*d++ = 0x7FFF;
}
} // End of namespace Trecision

View file

@ -292,7 +292,7 @@ void PaintObjAnm(uint16 CurBox) {
Common::Rect l(x1, y1, x2, y2);
g_vm->_limits[g_vm->_actorLimit].extend(l);
resetZBuffer(x1, y1, x2, y2);
g_vm->resetZBuffer(x1, y1, x2, y2);
}
drawCharacter(DRAWFACES);

View file

@ -142,6 +142,8 @@ public:
bool DataSave();
bool DataLoad();
void performLoad(int slot, bool skipLoad);
void resetZBuffer(int x1, int y1, int x2, int y2);
Graphics::Surface _thumbnail;

View file

@ -295,6 +295,17 @@ Graphics::Surface *TrecisionEngine::convertScummVMThumbnail(Graphics::Surface *t
return result;
}
void TrecisionEngine::resetZBuffer(int x1, int y1, int x2, int y2) {
if (x1 > x2 || y1 > y2)
return;
int size = (x2 - x1) * (y2 - y1);
if (size * 2 > ZBUFFERSIZE)
warning("Warning: _zBuffer size %d!\n", size * 2);
int16 *d = _zBuffer;
for (int i = 0; i < size; ++i)
*d++ = 0x7FFF;
}
} // End of namespace Trecision