aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDavid Symonds2007-01-06 17:07:13 +0000
committerDavid Symonds2007-01-06 17:07:13 +0000
commit5e2bd94f7a22d826be0606baceef10d522aec4d3 (patch)
tree339e4edd05ceea3a8e42dac70342755d59aac953 /engines
parentc8b46e026faf144a4c9db8dd1c9a66131b0e53c0 (diff)
downloadscummvm-rg350-5e2bd94f7a22d826be0606baceef10d522aec4d3.tar.gz
scummvm-rg350-5e2bd94f7a22d826be0606baceef10d522aec4d3.tar.bz2
scummvm-rg350-5e2bd94f7a22d826be0606baceef10d522aec4d3.zip
Start removing hires code from AGI engine.
svn-id: r25033
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/agi.cpp2
-rw-r--r--engines/agi/cycle.cpp3
-rw-r--r--engines/agi/picture.cpp22
-rw-r--r--engines/agi/picture.h1
4 files changed, 1 insertions, 27 deletions
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();