diff options
Diffstat (limited to 'backends/platform/ds')
-rw-r--r-- | backends/platform/ds/arm9/source/blitters.cpp | 16 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/blitters.h | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/backends/platform/ds/arm9/source/blitters.cpp b/backends/platform/ds/arm9/source/blitters.cpp index b1a7ed89e3..cba8b6fda8 100644 --- a/backends/platform/ds/arm9/source/blitters.cpp +++ b/backends/platform/ds/arm9/source/blitters.cpp @@ -222,4 +222,20 @@ void Rescale_320x1555Scanline_To_256x1555Scanline(u16* dest, const u16* src) } } +void Rescale_320x256xPAL8_To_256x256x1555(u16* dest, const u8* src, const u16* palette, int destStride, int srcStride) +{ + for(size_t i=0; i<200; ++i) + { + Rescale_320xPAL8Scanline_To_256x1555Scanline(dest + i*destStride, src + i *srcStride, palette); + } +} + +void Rescale_320x256x1555_To_256x256x1555(u16* dest, const u16* src, int destStride, int srcStride) +{ + for(size_t i=0; i<200; ++i) + { + Rescale_320x1555Scanline_To_256x1555Scanline(dest + i*destStride, src + i *srcStride); + } +} + } diff --git a/backends/platform/ds/arm9/source/blitters.h b/backends/platform/ds/arm9/source/blitters.h index 47cf143965..b24ceb7f7d 100644 --- a/backends/platform/ds/arm9/source/blitters.h +++ b/backends/platform/ds/arm9/source/blitters.h @@ -28,6 +28,8 @@ void asmDrawStripToScreen(int height, int width, byte const* text, byte const* s void asmCopy8Col(byte* dst, int dstPitch, const byte* src, int height); void Rescale_320xPAL8Scanline_To_256x1555Scanline(u16* dest, const u8* src, const u16* palette); void Rescale_320x1555Scanline_To_256x1555Scanline(u16* dest, const u16* src); +void Rescale_320x256xPAL8_To_256x256x1555(u16* dest, const u8* src, const u16* palette, int destStride, int srcStride); +void Rescale_320x256x1555_To_256x256x1555(u16* dest, const u16* src, int destStride, int srcStride); } |