VirtualBox

Changeset 15867 in vbox


Ignore:
Timestamp:
Jan 8, 2009 2:25:02 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41466
Message:

VGA device must take into account the start address of the visible screen when resizing the framebuffer (xTracker #3487).

File:
1 edited

Legend:

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

    r15807 r15867  
    21052105{
    21062106    const unsigned cBits = s->get_bpp(s);
    2107     /** @todo r=sunlover: If the guest changes VBE_DISPI_INDEX_X_OFFSET, VBE_DISPI_INDEX_Y_OFFSET
    2108      *                    registers, then the third parameter of the following call should be
    2109      *                    probably 's->CTX_SUFF(vram_ptr) + s->vbe_start_addr'.
    2110      */
    2111     int rc = s->pDrv->pfnResize(s->pDrv, cBits, s->CTX_SUFF(vram_ptr), s->line_offset, cx, cy);
     2107
     2108    /* Take into account the programmed start address (in DWORDs) of the visible screen. */
     2109    int rc = s->pDrv->pfnResize(s->pDrv, cBits, s->CTX_SUFF(vram_ptr) + s->start_addr * 4, s->line_offset, cx, cy);
    21122110
    21132111    /* last stuff */
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