- Timestamp:
- Apr 5, 2024 12:19:22 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r104130 r104175 389 389 DECLINLINE(void) vgaR3ResetDirty(PVGASTATE pThis, RTGCPHYS offVRAMStart, RTGCPHYS offVRAMEnd) 390 390 { 391 Assert (offVRAMStart < pThis->vram_size);392 Assert (offVRAMEnd <= pThis->vram_size);393 Assert (offVRAMStart < offVRAMEnd);391 AssertReturnVoid(offVRAMStart < pThis->vram_size); 392 AssertReturnVoid(offVRAMEnd <= pThis->vram_size); 393 AssertReturnVoid(offVRAMStart < offVRAMEnd); 394 394 ASMBitClearRange(&pThis->bmDirtyBitmap[0], offVRAMStart >> GUEST_PAGE_SHIFT, offVRAMEnd >> GUEST_PAGE_SHIFT); 395 395 } … … 960 960 else 961 961 offStart += offX * ((cBPP + 7) >> 3); 962 offStart >>= 2; 962 963 963 pThis->vbe_line_offset = RT_MIN(cbLinePitch, pThis->vram_size); 964 pThis->vbe_start_addr = RT_MIN(offStart, pThis->vram_size) ;964 pThis->vbe_start_addr = RT_MIN(offStart, pThis->vram_size) >> 2; 965 965 966 966 /* The VBE_DISPI_INDEX_VIRT_HEIGHT is used to prevent setting resolution bigger than
Note:
See TracChangeset
for help on using the changeset viewer.