aboutsummaryrefslogtreecommitdiff
path: root/GPU2D.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GPU2D.cpp')
-rw-r--r--GPU2D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/GPU2D.cpp b/GPU2D.cpp
index 8c1afd4..09d5221 100644
--- a/GPU2D.cpp
+++ b/GPU2D.cpp
@@ -885,7 +885,7 @@ void GPU2D::DrawBG_3D(u32 line, u32* dst)
i = (0x100 - (xoff & 0xFF));
xoff += i;
}
- if ((xoff + iend - 1) & 0x100)
+ if ((xoff - i + iend - 1) & 0x100)
{
iend -= (xoff & 0xFF);
}