Skip to content

Commit

Permalink
HOPKINS: Add MODE_VESA()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Dec 4, 2012
1 parent 6aa44d1 commit 1665340
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
4 changes: 4 additions & 0 deletions engines/hopkins/graphics.cpp
Expand Up @@ -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
1 change: 1 addition & 0 deletions engines/hopkins/graphics.h
Expand Up @@ -195,6 +195,7 @@ class GraphicsManager {
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
Expand Down
21 changes: 7 additions & 14 deletions engines/hopkins/hopkins.cpp
Expand Up @@ -356,8 +356,7 @@ bool HopkinsEngine::runWin95Demo() {
_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;
Expand All @@ -366,8 +365,7 @@ bool HopkinsEngine::runWin95Demo() {
_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;
Expand All @@ -376,8 +374,7 @@ bool HopkinsEngine::runWin95Demo() {
_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) {
Expand Down Expand Up @@ -1642,8 +1639,7 @@ bool HopkinsEngine::runWin95full() {
_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;
Expand All @@ -1652,8 +1648,7 @@ bool HopkinsEngine::runWin95full() {
_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;
Expand All @@ -1662,8 +1657,7 @@ bool HopkinsEngine::runWin95full() {
_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();
Expand Down Expand Up @@ -1722,8 +1716,7 @@ bool HopkinsEngine::runWin95full() {
_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;
Expand Down

0 comments on commit 1665340

Please sign in to comment.