Changeset 8472 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Apr 29, 2008 3:24:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_70.c
r8155 r8472 468 468 /* Query the host for the preferred resolution and colour depth */ 469 469 { 470 uint32_t cx , cy, iDisplay, cBits = 24;470 uint32_t cx = 0, cy = 0, iDisplay = 0, cBits = 24; 471 471 472 472 if (vboxGetDisplayChangeRequest(pScrn, &cx, &cy, &cBits, &iDisplay, … … 476 476 if (cBits != 16) 477 477 cBits = 24; 478 cx -= cx % 8; 479 pcHostModeName = XNFprintf("%dx%d", cx, cy); 478 if ((0 != cx) && (0 != cy)) { 479 cx -= cx % 8; 480 pcHostModeName = XNFprintf("%dx%d", cx, cy); 481 } 480 482 } 481 483 if (!xf86SetDepthBpp(pScrn, cBits, 0, 0, Support32bppFb))
Note:
See TracChangeset
for help on using the changeset viewer.