aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-12-04 23:29:28 +0100
committerStrangerke2012-12-04 23:29:28 +0100
commit1665340fca244d2f0e8e08e0d8426f3b3bf37f79 (patch)
tree003c061cb99563eb28b82205e5171f163d50b776
parent6aa44d12336d240749c92753d5886715f01b19bb (diff)
downloadscummvm-rg350-1665340fca244d2f0e8e08e0d8426f3b3bf37f79.tar.gz
scummvm-rg350-1665340fca244d2f0e8e08e0d8426f3b3bf37f79.tar.bz2
scummvm-rg350-1665340fca244d2f0e8e08e0d8426f3b3bf37f79.zip
HOPKINS: Add MODE_VESA()
-rw-r--r--engines/hopkins/graphics.cpp4
-rw-r--r--engines/hopkins/graphics.h1
-rw-r--r--engines/hopkins/hopkins.cpp21
3 files changed, 12 insertions, 14 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index 35a067cec5..0075fb0830 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -2529,4 +2529,8 @@ void GraphicsManager::Plot_Vline(byte *surface, int xp, int yp, int height, byte
} while (yCtr);
}
+void GraphicsManager::MODE_VESA() {
+ SET_MODE(640, 480);
+}
+
} // End of namespace Hopkins
diff --git a/engines/hopkins/graphics.h b/engines/hopkins/graphics.h
index 22b8e9f290..df0c71f8c3 100644
--- a/engines/hopkins/graphics.h
+++ b/engines/hopkins/graphics.h
@@ -195,6 +195,7 @@ public:
void Reduc_Ecran(const byte *srcSruface, byte *destSurface, int xp, int yp, int width, int height, int zoom);
void Plot_Hline(byte *surface, int xp, int yp, unsigned int width, byte col);
void Plot_Vline(byte *surface, int xp, int yp, int height, byte col);
+ void MODE_VESA();
};
} // End of namespace Hopkins
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp
index c2145d474d..88aaa9452a 100644
--- a/engines/hopkins/hopkins.cpp
+++ b/engines/hopkins/hopkins.cpp
@@ -356,8 +356,7 @@ LABEL_18:
_globals.ECRAN = 113;
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_computerManager.COMPUT_HOPKINS(COMPUTER_HOPKINS);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
case 114:
_globals.OLD_ECRAN = _globals.ECRAN;
@@ -366,8 +365,7 @@ LABEL_18:
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_globals.SORTIE = 0;
_computerManager.COMPUT_HOPKINS(COMPUTER_SAMANTHAS);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
case 115:
_globals.SORTIE = 0;
@@ -376,8 +374,7 @@ LABEL_18:
_globals.ECRAN = 115;
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_computerManager.COMPUT_HOPKINS(COMPUTER_PUBLIC);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
default:
if (_globals.SORTIE == 151) {
@@ -1642,8 +1639,7 @@ LABEL_20:
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_globals.SORTIE = 0;
_computerManager.COMPUT_HOPKINS(COMPUTER_HOPKINS);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
case 114:
_globals.SORTIE = 0;
@@ -1652,8 +1648,7 @@ LABEL_20:
_globals.SAUVEGARDE->data[svField6] = _globals.OLD_ECRAN;
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_computerManager.COMPUT_HOPKINS(COMPUTER_SAMANTHAS);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
case 115:
_globals.OLD_ECRAN = _globals.ECRAN;
@@ -1662,8 +1657,7 @@ LABEL_20:
_globals.SAUVEGARDE->data[svField5] = _globals.ECRAN;
_globals.SORTIE = 0;
_computerManager.COMPUT_HOPKINS(COMPUTER_PUBLIC);
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
break;
case 100:
JOUE_FIN();
@@ -1722,8 +1716,7 @@ LABEL_20:
_globals.PERSO_TYPE = 0;
_globals.iRegul = 0;
_graphicsManager.nbrligne = SCREEN_WIDTH;
-// MODE_VESA();
- _graphicsManager.SET_MODE(640, 480);
+ _graphicsManager.MODE_VESA();
if (_globals.SORTIE == -1)
error("FIN BASE SOUS MARINE");
break;