diff options
-rw-r--r-- | engines/hopkins/graphics.cpp | 4 | ||||
-rw-r--r-- | engines/hopkins/graphics.h | 1 | ||||
-rw-r--r-- | engines/hopkins/hopkins.cpp | 21 |
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; |