# HG changeset patch # User Michael Pavone # Date 1453070772 28800 # Node ID e64168bb2b25dbc0ad93144eec6937cd750f5fe0 # Parent 38dca41f151d5550d4687ff2f42fef5b777d7401 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 diff -r 38dca41f151d -r e64168bb2b25 vdp.c --- a/vdp.c Sun Jan 17 14:36:25 2016 -0800 +++ b/vdp.c Sun Jan 17 14:46:12 2016 -0800 @@ -605,7 +605,7 @@ 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;