VirtualBox

Changeset 5156 in vbox


Ignore:
Timestamp:
Oct 4, 2007 2:03:41 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25048
Message:

fixed check if a VESA mode fits into the guest VRAM

File:
1 edited

Legend:

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

    r4712 r5156  
    48294829            pixelWidth = 2;
    48304830        else
    4831             pixelWidth = mode_info_list[i].info.BitsPerPixel / 8;
     4831            pixelWidth = (mode_info_list[i].info.BitsPerPixel +7) / 8;
    48324832        reqSize = mode_info_list[i].info.XResolution
    48334833                * mode_info_list[i].info.YResolution
     
    48614861                pixelWidth = 2;
    48624862            else
    4863                 pixelWidth = pDefMode->info.BitsPerPixel / 8;
     4863                pixelWidth = (pDefMode->info.BitsPerPixel + 7) / 8;
    48644864            reqSize = pDefMode->info.XResolution * pDefMode->info.YResolution *  pixelWidth;
    48654865            if (reqSize >= pData->vram_size)
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