diff options
author | David Symonds | 2007-01-06 17:17:27 +0000 |
---|---|---|
committer | David Symonds | 2007-01-06 17:17:27 +0000 |
commit | e2ff69d230ffe8db5d3af98af9a95f1578296b3e (patch) | |
tree | a7e33ed7d76f6d262fccebbe82d6d2e515a6e68c | |
parent | 8fbf9a1e238ca0a341b1a79ef9362e0d6eb2bd29 (diff) | |
download | scummvm-rg350-e2ff69d230ffe8db5d3af98af9a95f1578296b3e.tar.gz scummvm-rg350-e2ff69d230ffe8db5d3af98af9a95f1578296b3e.tar.bz2 scummvm-rg350-e2ff69d230ffe8db5d3af98af9a95f1578296b3e.zip |
More hires removal, this time from sprites.
svn-id: r25035
-rw-r--r-- | engines/agi/sprite.cpp | 43 | ||||
-rw-r--r-- | engines/agi/sprite.h | 1 |
2 files changed, 0 insertions, 44 deletions
diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp index 333bea2753..5829f93bf2 100644 --- a/engines/agi/sprite.cpp +++ b/engines/agi/sprite.cpp @@ -134,40 +134,6 @@ void SpritesMgr::blit_pixel(uint8 *p, uint8 *end, uint8 col, int spr, int width, } -#define X_FACT 2 /* Horizontal hires factor */ - -int SpritesMgr::blit_hires_cel(int x, int y, int spr, view_cel *c) { - uint8 *q = NULL; - uint8 *h0, *h, *end; - int i, j, t, m, col; - int hidden = true; - - q = c->data; - t = c->transparency; - m = c->mirror; - spr <<= 4; - h0 = &_vm->game.hires[(x + y * _WIDTH + m * (c->width - 1)) * X_FACT]; - - end = _vm->game.hires + _WIDTH * X_FACT * _HEIGHT; - - for (i = 0; i < c->height; i++) { - h = h0; - while (*q) { - col = (*q & 0xf0) >> 4; - for (j = *q & 0x0f; j; j--, h += X_FACT * (1 - 2 * m)) { - if (col != t) { - blit_pixel(h, end, col, spr, _WIDTH * X_FACT, &hidden); - blit_pixel(h + 1, end, col, spr, _WIDTH * X_FACT, &hidden); - } - } - q++; - } - h0 += _WIDTH * X_FACT; - q++; - } - return hidden; -} - int SpritesMgr::blit_cel(int x, int y, int spr, view_cel *c) { uint8 *p0, *p, *q = NULL, *end; int i, j, t, m, col; @@ -183,9 +149,6 @@ int SpritesMgr::blit_cel(int x, int y, int spr, view_cel *c) { if (x >= _WIDTH) x = _WIDTH - 1; - if (_vm->opt.hires) - blit_hires_cel(x, y, spr, c); - q = c->data; t = c->transparency; m = c->mirror; @@ -289,9 +252,6 @@ void SpritesMgr::objs_restorearea(sprite *s) { q += x_size; p0 += _WIDTH; memcpy(h0, k, x_size * 2); - if (_vm->opt.hires) { - _gfx->putPixelsHires(x_pos * 2, y_pos + y + offset, x_size * 2, h0); - } k += x_size * 2; h0 += _WIDTH * 2; } @@ -789,9 +749,6 @@ void SpritesMgr::commit_block(int x1, int y1, int x2, int y2) { for (i = y1; i <= y2; i++) { _gfx->putPixelsA(x1, i + offset, w, q); q += _WIDTH; - if (_vm->opt.hires) { - _gfx->putPixelsHires(x1 * 2, i + offset, w * 2, h); - } h += _WIDTH * 2; } diff --git a/engines/agi/sprite.h b/engines/agi/sprite.h index ad6318bc07..243d72f058 100644 --- a/engines/agi/sprite.h +++ b/engines/agi/sprite.h @@ -55,7 +55,6 @@ private: void *pool_alloc(int size); void pool_release(void *s); void blit_pixel(uint8 *p, uint8 *end, uint8 col, int spr, int width, int *hidden); - int blit_hires_cel(int x, int y, int spr, view_cel *c); int blit_cel(int x, int y, int spr, view_cel *c); void objs_savearea(sprite *s); void objs_restorearea(sprite *s); |