diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-01-17 14:46:12 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-01-17 14:46:12 -0800 |
commit | 05265d3091abd932149648895dd3957cd854ee88 (patch) | |
tree | 37ff7d926bfb8f67d09c631bd3aee176150cd309 | |
parent | c7779cd106a6f19d5893448aa3978650aec7eac2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |