From ea535b0e389a1056c2ea5027fe95f864a7e6587a Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 30 Nov 2014 22:09:22 +0000 Subject: [PATCH] Pass gr_rle_expand_scanline arg as const --- common/2d/rle.cpp | 4 ++-- common/include/rle.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/2d/rle.cpp b/common/2d/rle.cpp index 5f3c3141a..6dca4e707 100644 --- a/common/2d/rle.cpp +++ b/common/2d/rle.cpp @@ -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; diff --git a/common/include/rle.h b/common/include/rle.h index 49dc00d28..25d144677 100644 --- a/common/include/rle.h +++ b/common/include/rle.h @@ -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)