diff options
author | Nipun Garg | 2019-06-08 02:21:47 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:45 +0200 |
commit | a4972ee38181f85bac4235103f7a372d6552995d (patch) | |
tree | 1db9bbbdafb8700e97e9e2abb118cd4e7a87eacd | |
parent | 714d7ed4a0d4cb259aabf6a6a829268bbd10e522 (diff) | |
download | scummvm-rg350-a4972ee38181f85bac4235103f7a372d6552995d.tar.gz scummvm-rg350-a4972ee38181f85bac4235103f7a372d6552995d.tar.bz2 scummvm-rg350-a4972ee38181f85bac4235103f7a372d6552995d.zip |
HDB: Add kScreenWidth and kScreenHeight enums
-rw-r--r-- | engines/hdb/hdb.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index b313e7c166..9615ff14a7 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -128,7 +128,7 @@ Common::Error HDBGame::run() { // Initializes Graphics Graphics::PixelFormat format(2, 5, 6, 5, 0, 11, 5, 0, 0); - initGraphics(640, 480, &format); + initGraphics(kScreenWidth, kScreenHeight, &format); _console = new Console(); diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 447c6809ea..e5305eb647 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -65,6 +65,11 @@ enum GameState { GAME_LOADING }; +enum { + kScreenWidth = 640, + kScreenHeight = 480 +}; + class HDBGame : public Engine { public: HDBGame(OSystem *syst, const ADGameDescription *gameDesc); |