diff --git a/src/blitter/8bpp_base.cpp b/src/blitter/8bpp_base.cpp --- a/src/blitter/8bpp_base.cpp +++ b/src/blitter/8bpp_base.cpp @@ -23,7 +23,7 @@ void Blitter_8bppBase::DrawColourMapping } while (--height); } -void *Blitter_8bppBase::MoveTo(const void *video, int x, int y) +void *Blitter_8bppBase::MoveTo(void *video, int x, int y) { return (uint8 *)video + x + y * _screen.pitch; } @@ -44,7 +44,7 @@ void Blitter_8bppBase::DrawRect(void *vi void Blitter_8bppBase::CopyFromBuffer(void *video, const void *src, int width, int height) { uint8 *dst = (uint8 *)video; - uint8 *usrc = (uint8 *)src; + const uint8 *usrc = (const uint8 *)src; for (; height > 0; height--) { memcpy(dst, usrc, width * sizeof(uint8)); @@ -56,7 +56,7 @@ void Blitter_8bppBase::CopyFromBuffer(vo void Blitter_8bppBase::CopyToBuffer(const void *video, void *dst, int width, int height) { uint8 *udst = (uint8 *)dst; - uint8 *src = (uint8 *)video; + const uint8 *src = (const uint8 *)video; for (; height > 0; height--) { memcpy(udst, src, width * sizeof(uint8)); @@ -68,7 +68,7 @@ void Blitter_8bppBase::CopyToBuffer(cons void Blitter_8bppBase::CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch) { uint8 *udst = (uint8 *)dst; - uint8 *src = (uint8 *)video; + const uint8 *src = (const uint8 *)video; for (; height > 0; height--) { memcpy(udst, src, width * sizeof(uint8));