aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorBertrand Augereau2006-10-25 19:32:01 +0000
committerBertrand Augereau2006-10-25 19:32:01 +0000
commit05aca1c928c4b65a9fb31c7f6d2acee6e4c3309f (patch)
tree98e8edcfb0aa8003b51aa02d19c824e3e8968352 /backends
parent24b0d4800ae5e94a03232def0788d045d837499f (diff)
downloadscummvm-rg350-05aca1c928c4b65a9fb31c7f6d2acee6e4c3309f.tar.gz
scummvm-rg350-05aca1c928c4b65a9fb31c7f6d2acee6e4c3309f.tar.bz2
scummvm-rg350-05aca1c928c4b65a9fb31c7f6d2acee6e4c3309f.zip
DS : Yet another scaling helpers
svn-id: r24505
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ds/arm9/source/blitters.cpp16
-rw-r--r--backends/platform/ds/arm9/source/blitters.h2
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);
}