diff options
author | Max Horn | 2004-10-04 14:39:42 +0000 |
---|---|---|
committer | Max Horn | 2004-10-04 14:39:42 +0000 |
commit | b8419baa67f26c807fdfb1fa5c5d3d3e2d3ff406 (patch) | |
tree | 04135b54b15e985114c43cd53399ff269b040e56 /scumm/gfx.cpp | |
parent | 0de20e2911f585d8c79f4137423f7adf83851a44 (diff) | |
download | scummvm-rg350-b8419baa67f26c807fdfb1fa5c5d3d3e2d3ff406.tar.gz scummvm-rg350-b8419baa67f26c807fdfb1fa5c5d3d3e2d3ff406.tar.bz2 scummvm-rg350-b8419baa67f26c807fdfb1fa5c5d3d3e2d3ff406.zip |
Remove Gdi::fillRect, use the existing fill() method instead
svn-id: r15412
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index dd22ae2bfd..135459c0c5 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -39,6 +39,7 @@ static void fill(byte *dst, int dstPitch, byte color, int w, int h); static void copy8Col(byte *dst, int dstPitch, const byte *src, int height); static void clear8Col(byte *dst, int dstPitch, int height); + struct StripTable { int offsets[160]; int run[160]; @@ -1394,7 +1395,7 @@ void Gdi::drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip) { // for an area spanning multiple strips. In particular, the codecs 13 & 14 // in decompressBitmap call drawStripHE() if (code == 150) { - fillRect((byte *)vs->backBuf, vs->pitch, 0, 0, vs->w - 1, vs->h - 1, *bmap_ptr); + fill((byte *)vs->backBuf, vs->pitch, *bmap_ptr, vs->w, vs->h); } else if ((code >= 134 && code <= 138) || (code >= 144 && code <= 148)) { _decomp_shr = code % 10; _decomp_mask = 0xFF >> (8 - _decomp_shr); @@ -2169,20 +2170,6 @@ void Gdi::drawStripHE(byte *dst, int dstPitch, const byte *src, int width, int h } } -void Gdi::fillRect(byte *dst, int pitch, int x1, int y1, int x2, int y2, byte color) { - int w, h; - byte *ptr = dst + x1 + y1 * pitch; - - w = x2 - x1 + 1; - h = y2 - y1 + 1; - - for (int i = 0; i < h; i++) { - memset(ptr, color, w); - ptr += pitch; - } -} - - #undef READ_BIT #undef FILL_BITS |