Pass gr_rle_expand_scanline arg as const

This commit is contained in:
Kp 2014-11-30 22:09:22 +00:00
parent 706782b275
commit ea535b0e38
2 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ rle_position_t gr_rle_decode(rle_position_t b, const rle_position_t e)
// Given pointer to start of one scanline of rle data, uncompress it to
// dest, from source pixels x1 to x2.
void gr_rle_expand_scanline_masked( ubyte *dest, ubyte *src, int x1, int x2 )
void gr_rle_expand_scanline_masked(uint8_t *dest, const uint8_t *src, int x1, int x2)
{
int i = 0;
ubyte count;
@ -138,7 +138,7 @@ void gr_rle_expand_scanline_masked( ubyte *dest, ubyte *src, int x1, int x2 )
}
}
void gr_rle_expand_scanline( ubyte *dest, ubyte *src, int x1, int x2 )
void gr_rle_expand_scanline(uint8_t *dest, const uint8_t *src, int x1, int x2)
{
int i = 0;
ubyte count;

View file

@ -64,8 +64,8 @@ static inline rle_position_t rle_end(const T1 &src, T2 &dst)
rle_position_t gr_rle_decode(rle_position_t b, const rle_position_t e);
ubyte * gr_rle_find_xth_pixel( ubyte *src, int x,int * count, ubyte color );
int gr_bitmap_rle_compress( grs_bitmap * bmp );
void gr_rle_expand_scanline_masked( ubyte *dest, ubyte *src, int x1, int x2 );
void gr_rle_expand_scanline( ubyte *dest, ubyte *src, int x1, int x2 );
void gr_rle_expand_scanline_masked(uint8_t *dest, const uint8_t *src, int x1, int x2);
void gr_rle_expand_scanline(uint8_t *dest, const uint8_t *src, int x1, int x2);
grs_bitmap *_rle_expand_texture(const grs_bitmap &bmp);
static inline const grs_bitmap *rle_expand_texture(const grs_bitmap &bmp) __attribute_warn_unused_result;
static inline const grs_bitmap *rle_expand_texture(const grs_bitmap &bmp)