aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorsluicebox2019-11-16 03:12:55 -0800
committerEugene Sandulenko2019-11-19 00:20:40 +0100
commit9ae76619550892f33c2ef446036dc6d4158c5bd1 (patch)
tree88c9c135ebba115b6726a11d87844e271a47421e /backends/platform
parent4b4b33fad3df6c47ff3421e84e8ea64996c887d7 (diff)
downloadscummvm-rg350-9ae76619550892f33c2ef446036dc6d4158c5bd1.tar.gz
scummvm-rg350-9ae76619550892f33c2ef446036dc6d4158c5bd1.tar.bz2
scummvm-rg350-9ae76619550892f33c2ef446036dc6d4158c5bd1.zip
DS: Implement horizontal shake
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ds/arm9/source/dsmain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp
index b0f61322d5..782903c415 100644
--- a/backends/platform/ds/arm9/source/dsmain.cpp
+++ b/backends/platform/ds/arm9/source/dsmain.cpp
@@ -2097,6 +2097,7 @@ void VBlankHandler(void) {
} else {
SUB_BG3_CX = subScX + 64;
}
+ SUB_BG3_CX += (s_shakeXOffset << 8)
SUB_BG3_CY = subScY + (s_shakeYOffset << 8);*/
@@ -2230,7 +2231,7 @@ void VBlankHandler(void) {
setZoomedScreenScale(subScreenWidth, ((subScreenHeight * (256 << 8)) / 192) >> 8);
- setMainScreenScroll(scX << 8, (scY << 8) + (s_shakeYOffset << 8));
+ setMainScreenScroll((scX << 8) + (s_shakeXOffset << 8), (scY << 8) + (s_shakeYOffset << 8));
setMainScreenScale(256, 256); // 1:1 scale
} else {
@@ -2246,7 +2247,7 @@ void VBlankHandler(void) {
setZoomedScreenScroll(subScX, subScY, (subScreenWidth != 256) && (subScreenWidth != 128));
setZoomedScreenScale(subScreenWidth, ((subScreenHeight * (256 << 8)) / 192) >> 8);
- setMainScreenScroll(64, (scY << 8) + (s_shakeYOffset << 8));
+ setMainScreenScroll(64 + (s_shakeXOffset << 8), (scY << 8) + (s_shakeYOffset << 8));
setMainScreenScale(320, 256); // 1:1 scale
}