Changeset 5156 in vbox
- Timestamp:
- Oct 4, 2007 2:03:41 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 25048
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r4712 r5156 4829 4829 pixelWidth = 2; 4830 4830 else 4831 pixelWidth = mode_info_list[i].info.BitsPerPixel/ 8;4831 pixelWidth = (mode_info_list[i].info.BitsPerPixel +7) / 8; 4832 4832 reqSize = mode_info_list[i].info.XResolution 4833 4833 * mode_info_list[i].info.YResolution … … 4861 4861 pixelWidth = 2; 4862 4862 else 4863 pixelWidth = pDefMode->info.BitsPerPixel/ 8;4863 pixelWidth = (pDefMode->info.BitsPerPixel + 7) / 8; 4864 4864 reqSize = pDefMode->info.XResolution * pDefMode->info.YResolution * pixelWidth; 4865 4865 if (reqSize >= pData->vram_size)
Note:
See TracChangeset
for help on using the changeset viewer.