My recent change to _draw_bottom caused a regression in The Dig (and maybe elsewhere). Ah well, probably better to draw one line more than one line less anyway

svn-id: r13462
This commit is contained in:
Max Horn 2004-04-04 19:41:02 +00:00
parent 70237e74c9
commit 4de4353c39
2 changed files with 6 additions and 6 deletions

View File

@ -732,8 +732,8 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) {
if (_draw_top > rect.top)
_draw_top = rect.top;
if (_draw_bottom < rect.bottom - 1)
_draw_bottom = rect.bottom - 1;
if (_draw_bottom < rect.bottom)
_draw_bottom = rect.bottom;
v1.destptr = _outptr + v1.y * _outwidth + v1.x;
@ -776,8 +776,8 @@ byte AkosRenderer::codec5(int xmoveCur, int ymoveCur) {
if (_draw_top > clip.top)
_draw_top = clip.top;
if (_draw_bottom < clip.bottom - 1)
_draw_bottom = clip.bottom - 1;
if (_draw_bottom < clip.bottom)
_draw_bottom = clip.bottom;
BompDrawData bdd;

View File

@ -262,8 +262,8 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
if (_draw_top > rect.top)
_draw_top = rect.top;
if (_draw_bottom < rect.bottom - 1)
_draw_bottom = rect.bottom - 1;
if (_draw_bottom < rect.bottom)
_draw_bottom = rect.bottom;
if (_height + rect.top >= 256) {
CHECK_HEAP