From a4972ee38181f85bac4235103f7a372d6552995d Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sat, 8 Jun 2019 02:21:47 +0530 Subject: HDB: Add kScreenWidth and kScreenHeight enums --- engines/hdb/hdb.cpp | 2 +- engines/hdb/hdb.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3