summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-01-17 14:46:12 -0800
committerMichael Pavone <pavone@retrodev.com>2016-01-17 14:46:12 -0800
commit05265d3091abd932149648895dd3957cd854ee88 (patch)
tree37ff7d926bfb8f67d09c631bd3aee176150cd309
parentc7779cd106a6f19d5893448aa3978650aec7eac2 (diff)
Fix calculation of window start column when it's on the right side. This removes graphical glitches in Afterburner 2, Fireshark and Dungeons and Dragons: Warriors of the Eternal Sun and probably others
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index f03c516..b5a5713 100644
--- a/vdp.c
+++ b/vdp.c
@@ -605,7 +605,7 @@ void read_map_scroll(uint16_t column, uint16_t vsram_off, uint32_t line, uint16_
if (!vsram_off) {
uint16_t left_col, right_col;
if (context->regs[REG_WINDOW_H] & WINDOW_RIGHT) {
- left_col = (context->regs[REG_WINDOW_H] & 0x1F) * 2;
+ left_col = (context->regs[REG_WINDOW_H] & 0x1F) * 2 + 2;
right_col = 42;
} else {
left_col = 0;