Changeset 53527 in vbox for trunk/src/VBox
- Timestamp:
- Dec 12, 2014 5:26:17 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/getmode.c
r53516 r53527 217 217 pVBox->pScreens[i].aPreferredSize.cx = 1024; 218 218 pVBox->pScreens[i].aPreferredSize.cy = 768; 219 pVBox->pScreens[i].afConnected = true; 219 220 } 220 221 /* Set up the first mode correctly to match the requested initial mode. */ … … 253 254 for (i = 0; i < prop->size && i < pVBox->cScreens; ++i) 254 255 { 255 if (((int32_t *)prop->data)[i] == 0) 256 { 257 pVBox->pScreens[i].aPreferredSize.cx = 1024; 258 pVBox->pScreens[i].aPreferredSize.cy = 768; 259 } 260 else 256 if (((int32_t *)prop->data)[i] != 0) 261 257 { 262 258 pVBox->pScreens[i].aPreferredSize.cx = -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r53451 r53527 418 418 vbox_output_detect (xf86OutputPtr output) 419 419 { 420 (void) output; 421 return XF86OutputStatusConnected; 420 ScrnInfoPtr pScrn = output->scrn; 421 VBOXPtr pVBox = VBOXGetRec(pScrn); 422 uint32_t iScreen = (uintptr_t)output->driver_private; 423 return pVBox->pScreens[iScreen].afConnected 424 ? XF86OutputStatusConnected : XF86OutputStatusDisconnected; 422 425 } 423 426 -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r52199 r53527 162 162 /** The current preferred resolution for the screen */ 163 163 RTRECTSIZE aPreferredSize; 164 /** Has this screen been enabled by the host? */ 165 Bool afConnected; 164 166 }; 165 167
Note:
See TracChangeset
for help on using the changeset viewer.