From 05265d3091abd932149648895dd3957cd854ee88 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 17 Jan 2016 14:46:12 -0800 Subject: 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 --- vdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdp.c') 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; -- cgit v1.2.3