VirtualBox

Changeset 908 in vbox


Ignore:
Timestamp:
Feb 14, 2007 4:10:35 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18631
Message:

In DevVGA the line width in bytes was incorrectly calculated for non 32 bit video modes.

File:
1 edited

Legend:

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

    r521 r908  
    153153DECLINLINE(void) vga_set_dirty(VGAState *pData, RTGCPHYS offVRAM)
    154154{
    155     Assert(offVRAM < pData->vram_size);
     155    AssertMsg(offVRAM < pData->vram_size, ("offVRAM = %p, pData->vram_size = %p\n", offVRAM, pData->vram_size));
    156156    ASMBitSet(&pData->au32DirtyBitmap[0], offVRAM >> PAGE_SHIFT);
    157157    pData->fHaveDirtyBits = true;
     
    168168DECLINLINE(bool) vga_is_dirty(VGAState *pData, RTGCPHYS offVRAM)
    169169{
    170     Assert(offVRAM < pData->vram_size);
     170    AssertMsg(offVRAM < pData->vram_size, ("offVRAM = %p, pData->vram_size = %p\n", offVRAM, pData->vram_size));
    171171    return ASMBitTest(&pData->au32DirtyBitmap[0], offVRAM >> PAGE_SHIFT);
    172172}
     
    182182{
    183183    Assert(offVRAMStart < pData->vram_size);
    184     Assert(offVRAMEnd < pData->vram_size);
     184    Assert(offVRAMEnd <= pData->vram_size);
    185185    Assert(offVRAMStart < offVRAMEnd);
    186186    ASMBitClearRange(&pData->au32DirtyBitmap[0], offVRAMStart >> PAGE_SHIFT, offVRAMEnd >> PAGE_SHIFT);
     
    18881888#endif
    18891889    addr1 = (s->start_addr * 4);
     1890#ifndef VBOX
    18901891    bwidth = width * 4;
     1892#else /* VBOX */
     1893    /* The width of VRAM scanline. */
     1894    bwidth = s->line_offset;
     1895#endif /* VBOX */
    18911896    y_start = -1;
    18921897    page_min = 0x7fffffff;
Note: See TracChangeset for help on using the changeset viewer.

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