Ticket #2729: costume-height.diff
File costume-height.diff, 1.0 KB (added by , 18 years ago) |
---|
-
engines/scumm/costume.cpp
418 418 byte len, maskbit; 419 419 int y; 420 420 uint color, height, pcolor; 421 const byte *scaleytab;421 byte scaleIndexY; 422 422 bool masked; 423 423 424 424 y = v1.y; … … 428 428 color = v1.repcolor; 429 429 height = _height; 430 430 431 scale ytab = &v1.scaletable[_scaleIndexY];431 scaleIndexY = _scaleIndexY; 432 432 maskbit = revBitMask(v1.x & 7); 433 433 mask = v1.mask_ptr + v1.x / 8; 434 434 … … 443 443 len = *src++; 444 444 445 445 do { 446 if (_scaleY == 255 || *scaleytab++< _scaleY) {446 if (_scaleY == 255 || v1.scaletable[scaleIndexY++] < _scaleY) { 447 447 masked = (y < 0 || y >= _out.h) || (v1.mask_ptr && (mask[0] & maskbit)); 448 448 449 449 if (color && !masked) { … … 466 466 height = _height; 467 467 y = v1.y; 468 468 469 scale ytab = &v1.scaletable[_scaleIndexY];469 scaleIndexY = _scaleIndexY; 470 470 471 471 if (_scaleX == 255 || v1.scaletable[_scaleIndexX] < _scaleX) { 472 472 v1.x += v1.scaleXstep;