aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/utils.cpp
diff options
context:
space:
mode:
authorStrangerke2013-08-17 12:45:28 +0200
committerStrangerke2013-08-17 12:45:28 +0200
commit818b9a652b730947085b34c4b0ebd2682870fe05 (patch)
tree570cba93cad0ff308f9c3ab5d9c32f0e4f4b8c77 /engines/mortevielle/utils.cpp
parenta5ec205f46a9c5cc833a1cab616aa82bed1309c2 (diff)
downloadscummvm-rg350-818b9a652b730947085b34c4b0ebd2682870fe05.tar.gz
scummvm-rg350-818b9a652b730947085b34c4b0ebd2682870fe05.tar.bz2
scummvm-rg350-818b9a652b730947085b34c4b0ebd2682870fe05.zip
MORTEVIELLE: Remove some dead code and variables related to graphical modes
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r--engines/mortevielle/utils.cpp38
1 files changed, 1 insertions, 37 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp
index cc3e879450..f138dde5c5 100644
--- a/engines/mortevielle/utils.cpp
+++ b/engines/mortevielle/utils.cpp
@@ -1949,28 +1949,11 @@ void MortevielleEngine::setPal(int n) {
}
/**
- * Engine function - Display a CGA pattern, using a specified palette
- * @remarks Originally called 'outbloc'
- */
-void MortevielleEngine::displayCGAPattern(int n, Pattern *p, nhom *pal) {
- int addr = n * 404 + 0xd700;
-
- WRITE_LE_UINT16(&_curPict[addr], p->_tax);
- WRITE_LE_UINT16(&_curPict[addr + 2], p->_tay);
- addr += 4;
- for (int i = 0; i < p->_tax; ++i) {
- for (int j = 0; j < p->_tay; ++j)
- _curPict[addr + j * p->_tax + i] = pal[n]._hom[p->_des[i + 1][j + 1]];
- }
-}
-
-/**
* Engine function - Load Palette from File
* @remarks Originally called 'charpal'
*/
void MortevielleEngine::loadPalette() {
Common::File f;
- byte b;
if (!f.open("fxx.mor")) {
if (f.open("mfxx.mor"))
@@ -1996,27 +1979,8 @@ void MortevielleEngine::loadPalette() {
if (!f.open("cxx.mor"))
error("Missing file - cxx.mor");
- for (int j = 0; j <= 90; ++j) {
- _cgaPal[j]._p = f.readByte();
- for (int i = 0; i <= 15; ++i) {
- nhom &with = _cgaPal[j]._a[i];
+ // Skip CGA Palette and Patterns
- b = f.readByte();
- with._id = (uint)b >> 4;
- with._hom[0] = ((uint)b >> 2) & 3;
- with._hom[1] = b & 3;
- }
- }
-
- _cgaPal[10]._a[9] = _cgaPal[10]._a[5];
- for (int j = 0; j <= 14; ++j) {
- _patternArr[j]._tax = f.readByte();
- _patternArr[j]._tay = f.readByte();
- for (int i = 1; i <= 20; ++i) {
- for (int k = 1; k <= 20; ++k)
- _patternArr[j]._des[i][k] = f.readByte();
- }
- }
f.close();
}