From 6bbd601c83b98cd342e60daf1fc42d4ff4643e6e Mon Sep 17 00:00:00 2001 From: Christophe Bothamy Date: Mon, 12 Aug 2002 16:16:53 +0000 Subject: [PATCH] - fixed offset in vbe. See patch [ 592081 ] Bug: typo in VBE code --- bochs/iodev/vga.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bochs/iodev/vga.cc b/bochs/iodev/vga.cc index 0125791f5..d1f522735 100644 --- a/bochs/iodev/vga.cc +++ b/bochs/iodev/vga.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: vga.cc,v 1.36 2002-07-24 19:36:39 vruppert Exp $ +// $Id: vga.cc,v 1.37 2002-08-12 16:16:53 cbothamy Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -2100,7 +2100,7 @@ bx_vga_c::vbe_mem_read(Bit32u addr) if (addr >= VBE_DISPI_LFB_PHYSICAL_ADDRESS) { // LFB read - offset = offset - VBE_DISPI_LFB_PHYSICAL_ADDRESS; + offset = addr - VBE_DISPI_LFB_PHYSICAL_ADDRESS; } else { @@ -2124,7 +2124,7 @@ bx_vga_c::vbe_mem_write(Bit32u addr, Bit8u value) if (addr >= VBE_DISPI_LFB_PHYSICAL_ADDRESS) { // LFB write - offset = offset - VBE_DISPI_LFB_PHYSICAL_ADDRESS; + offset = addr - VBE_DISPI_LFB_PHYSICAL_ADDRESS; } else {