From 5e2bd94f7a22d826be0606baceef10d522aec4d3 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Sat, 6 Jan 2007 17:07:13 +0000 Subject: Start removing hires code from AGI engine. svn-id: r25033 --- engines/agi/agi.cpp | 2 +- engines/agi/cycle.cpp | 3 --- engines/agi/picture.cpp | 22 ---------------------- engines/agi/picture.h | 1 - 4 files changed, 1 insertion(+), 27 deletions(-) (limited to 'engines/agi') diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index e38be13a1f..0d2004167c 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -574,7 +574,7 @@ AgiEngine::AgiEngine(OSystem *syst) : Engine(syst) { void AgiEngine::initialize() { memset(&opt, 0, sizeof(struct agi_options)); opt.gamerun = GAMERUN_RUNGAME; - opt.hires = true; + opt.hires = 0; // TODO: Some sound emulation modes do not fit our current music // drivers, and I'm not sure what they are. For now, they might diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp index f828efe0b2..7d067409e2 100644 --- a/engines/agi/cycle.cpp +++ b/engines/agi/cycle.cpp @@ -350,9 +350,6 @@ int AgiEngine::play_game() { int AgiEngine::run_game() { int i, ec = err_OK; - if (opt.renderMode == Common::kRenderCGA) - opt.hires = 0; - for (i = 0; i < MAX_DIRS; i++) memset(&game.ev_keyp[i], 0, sizeof(struct agi_event)); diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp index 526fde2c5d..86e61d3797 100644 --- a/engines/agi/picture.cpp +++ b/engines/agi/picture.cpp @@ -715,24 +715,6 @@ void PictureMgr::hires_fill() { foffs--; } -/** - * Show AGI picture. - * This function copies a ``hidden'' AGI picture to the output device. - */ -void PictureMgr::show_hires_pic() { - int y, offset; - int32 i; - - i = 0; - offset = _vm->game.line_min_print * CHAR_LINES; - for (y = 0; y < _HEIGHT; y++) { - _gfx->putPixelsHires(0, y + offset, _WIDTH * 2, &_vm->game.hires[i]); - i += _WIDTH * 2; - } - - _gfx->flushScreen(); -} - void PictureMgr::fix_hires_picture() { uint8 *p, *b; int i; @@ -974,10 +956,6 @@ void PictureMgr::show_pic() { int offset; debugC(8, kDebugLevelMain, "Show picture!"); - if (_vm->opt.hires) { - show_hires_pic(); - return; - } i = 0; offset = _vm->game.line_min_print * CHAR_LINES; diff --git a/engines/agi/picture.h b/engines/agi/picture.h index 97e331a1a5..2e4f673563 100644 --- a/engines/agi/picture.h +++ b/engines/agi/picture.h @@ -67,7 +67,6 @@ private: void _hires_fill(unsigned int x, unsigned int y); void hires_fill(); INLINE int hires_fill_here(int x, int y); - void show_hires_pic(); void fix_hires_picture(); void draw_picture(); -- cgit v1.2.3