summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-11-26 21:06:29 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-11-26 21:06:29 +0000
commite2f26c89ebbd4a9004f653c55fe4d606911ca082 (patch)
treec2a7bdc8bd05d68941e5b97ca6544d64b414fe40 /libpcsxcore
parentd78e8986a18042c0f0458b0557964e6b1f935b6d (diff)
downloadpcsxr-e2f26c89ebbd4a9004f653c55fe4d606911ca082.tar.gz
Eggs of Steel - mdec.c
- tiny fix to image ptr update git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@60195 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/mdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpcsxcore/mdec.c b/libpcsxcore/mdec.c
index 62afbcbd..4e763b78 100644
--- a/libpcsxcore/mdec.c
+++ b/libpcsxcore/mdec.c
@@ -573,7 +573,7 @@ void psxDma1(u32 adr, u32 bcr, u32 chcr) {
int n = mdec.block_buffer - mdec.block_buffer_pos + SIZE_OF_16B_BLOCK;
/* TODO: check if partial block do not larger than size */
memcpy(image, mdec.block_buffer_pos, n);
- image += n;
+ image += n / 2;
size -= n;
mdec.block_buffer_pos = 0;
}
@@ -581,7 +581,7 @@ void psxDma1(u32 adr, u32 bcr, u32 chcr) {
while(size >= SIZE_OF_16B_BLOCK) {
mdec.rl = rl2blk(blk, mdec.rl);
yuv2rgb15(blk, (u16 *)image);
- image += SIZE_OF_16B_BLOCK;
+ image += SIZE_OF_16B_BLOCK / 2;
size -= SIZE_OF_16B_BLOCK;
}
@@ -602,7 +602,7 @@ void psxDma1(u32 adr, u32 bcr, u32 chcr) {
int n = mdec.block_buffer - mdec.block_buffer_pos + SIZE_OF_24B_BLOCK;
/* TODO: check if partial block do not larger than size */
memcpy(image, mdec.block_buffer_pos, n);
- image += n;
+ image += n / 2;
size -= n;
mdec.block_buffer_pos = 0;
}
@@ -610,7 +610,7 @@ void psxDma1(u32 adr, u32 bcr, u32 chcr) {
while(size >= SIZE_OF_24B_BLOCK) {
mdec.rl = rl2blk(blk, mdec.rl);
yuv2rgb24(blk, image);
- image += SIZE_OF_24B_BLOCK;
+ image += SIZE_OF_24B_BLOCK / 2;
size -= SIZE_OF_24B_BLOCK;
}