VirtualBox

Ignore:
Timestamp:
Nov 22, 2019 11:02:50 PM (5 years ago)
Author:
vboxsync
Message:

VGABIOS: Fixed read pixel function (INT 10h/0Dh) in CGA graphics modes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/vgabios.c

    r82111 r82113  
    446446        break;
    447447    case CGA:
    448         addr = (col >> 2) + (row >> 1) * 80;
     448        addr = (col >> (4 - vga_modes[line].pixbits)) + (row >> 1) * 80;
    449449        if (row & 1)
    450450            addr += 0x2000;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette