VirtualBox

Changeset 32794 in vbox


Ignore:
Timestamp:
Sep 28, 2010 2:30:57 PM (14 years ago)
Author:
vboxsync
Message:

Devices/Graphics/DevVGA: fix a bug in r14534 which set scan line pitch in bytes instead of pixels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r32769 r32794  
    871871                    s->vbe_line_offset = val * ((s->vbe_regs[VBE_DISPI_INDEX_BPP] + 7) >> 3);
    872872                /* XXX: support weird bochs semantics ? */
    873                 s->vbe_regs[VBE_DISPI_INDEX_VIRT_WIDTH] = s->vbe_line_offset;
     873                s->vbe_regs[VBE_DISPI_INDEX_VIRT_WIDTH] = val;
    874874                s->vbe_regs[VBE_DISPI_INDEX_X_OFFSET] = 0;
    875875                s->vbe_regs[VBE_DISPI_INDEX_Y_OFFSET] = 0;
     
    901901                    s->vbe_line_offset = s->vbe_regs[VBE_DISPI_INDEX_XRES] * ((val + 7) >> 3);
    902902                /* XXX: support weird bochs semantics ? */
    903                 s->vbe_regs[VBE_DISPI_INDEX_VIRT_WIDTH] = s->vbe_line_offset;
     903                s->vbe_regs[VBE_DISPI_INDEX_VIRT_WIDTH] = val;
    904904                s->vbe_regs[VBE_DISPI_INDEX_X_OFFSET] = 0;
    905905                s->vbe_regs[VBE_DISPI_INDEX_Y_OFFSET] = 0;
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