From c525d9e5fc253b62fccd49c5e16daf12f68f8a95 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Fri, 24 Nov 2023 23:08:17 +0100 Subject: [PATCH] Consider half dot clock for h-panning (final fix for issue #114). --- bochs/iodev/display/vgacore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/iodev/display/vgacore.cc b/bochs/iodev/display/vgacore.cc index 4654af77f2..38f111f1c7 100644 --- a/bochs/iodev/display/vgacore.cc +++ b/bochs/iodev/display/vgacore.cc @@ -1279,10 +1279,10 @@ Bit8u bx_vgacore_c::get_vga_pixel(Bit16u x, Bit16u y, Bit16u saddr, Bit16u lc, b Bit8u attribute, bit_no, palette_reg_val, DAC_regno; Bit32u byte_offset; + if (BX_VGA_THIS s.x_dotclockdiv2) x >>= 1; if ((y <= lc) || !BX_VGA_THIS s.attribute_ctrl.mode_ctrl.pixel_panning_compat) { x += BX_VGA_THIS s.attribute_ctrl.horiz_pel_panning; } - if (BX_VGA_THIS s.x_dotclockdiv2) x >>= 1; bit_no = 7 - (x % 8); if (y > lc) { byte_offset = x / 8 +