diff --git a/common/2d/bitblt.cpp b/common/2d/bitblt.cpp index ee5732097..031afe9a1 100644 --- a/common/2d/bitblt.cpp +++ b/common/2d/bitblt.cpp @@ -495,7 +495,7 @@ static void gr_bm_ubitblt0x_rle(int w, int h, int dx, int dy, int sx, int sy, gr sbits += (int)(INTEL_SHORT(src->bm_data[4+(i*data_offset)])); for (int y1=0; y1 < h; y1++ ) { - gr_rle_expand_scanline_generic( dest, dx, dy+y1, sbits, sx, sx+w-1); + gr_rle_expand_scanline_generic(*dest, dx, dy+y1, sbits, sx, sx+w-1); if ( src->bm_flags & BM_FLAG_RLE_BIG ) sbits += (int)INTEL_SHORT(*((short *)&(src->bm_data[4+((y1+sy)*data_offset)]))); else diff --git a/common/2d/rle.cpp b/common/2d/rle.cpp index 5b6ebd5b6..d5806581b 100644 --- a/common/2d/rle.cpp +++ b/common/2d/rle.cpp @@ -447,7 +447,7 @@ grs_bitmap *_rle_expand_texture(const grs_bitmap &bmp) } -void gr_rle_expand_scanline_generic( grs_bitmap * dest, int dx, int dy, ubyte *src, int x1, int x2 ) +void gr_rle_expand_scanline_generic(grs_bitmap &dest, int dx, int dy, const ubyte *src, int x1, int x2 ) { int i = 0; int count; @@ -475,12 +475,12 @@ void gr_rle_expand_scanline_generic( grs_bitmap * dest, int dx, int dy, ubyte *s if ( x1+count > x2 ) { count = x2-x1+1; for ( int j=0; j &colormap); -void gr_rle_expand_scanline_generic( grs_bitmap * dest, int dx, int dy, ubyte *src, int x1, int x2 ); +void gr_rle_expand_scanline_generic(grs_bitmap &dest, int dx, int dy, const ubyte *src, int x1, int x2 ); #endif