VirtualBox

Changeset 33040 in vbox for trunk/src


Ignore:
Timestamp:
Oct 11, 2010 12:44:03 PM (14 years ago)
Author:
vboxsync
Message:

DevVGA: Need to take number of planes into account, too.

File:
1 edited

Legend:

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

    r33001 r33040  
    61636163{
    61646164    int         maxPage;
    6165 
     6165    int         bpl;
     6166   
     6167
     6168    /* For 4bpp modes, the planes are "stacked" on top of each other. */
     6169    bpl = pMode->info.BytesPerScanLine * pMode->info.NumberOfPlanes;
    61666170    /* The "number of image pages" is really the max page index... */
    6167     maxPage = pThis->vram_size / (pMode->info.YResolution * pMode->info.BytesPerScanLine) - 1;
     6171    maxPage = pThis->vram_size / (pMode->info.YResolution * bpl) - 1;
    61686172    Assert(maxPage >= 0);
    61696173    if (maxPage > 255)
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