- Timestamp:
- Oct 11, 2010 12:44:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r33001 r33040 6163 6163 { 6164 6164 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; 6166 6170 /* 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; 6168 6172 Assert(maxPage >= 0); 6169 6173 if (maxPage > 255)
Note:
See TracChangeset
for help on using the changeset viewer.