Changeset 55334 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Apr 17, 2015 3:25:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r55332 r55334 500 500 vbox_output_dpms (xf86OutputPtr output, int mode) 501 501 { 502 VBOXPtr pVBox = VBOXGetRec(output->scrn); 503 unsigned cDisplay = (uintptr_t)output->driver_private; 504 bool fEnabled = (mode == DPMSModeOn); 505 506 TRACE_LOG("cDisplay=%u, mode=%i\n", cDisplay, mode); 507 pVBox->pScreens[cDisplay].fOutputEnabled = fEnabled; 508 /* Don't fiddle with the hardware if we are switched 509 * to a virtual terminal. */ 510 if (!output->scrn->vtSema) { 511 xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, 512 "We do not own the active VT, exiting.\n"); 513 return; 514 } 515 if ( pVBox->pScreens[cDisplay].aScreenLocation.cx 516 && pVBox->pScreens[cDisplay].aScreenLocation.cy) 517 VBOXSetMode(output->scrn, cDisplay, 518 pVBox->pScreens[cDisplay].aScreenLocation.cx, 519 pVBox->pScreens[cDisplay].aScreenLocation.cy, 520 pVBox->pScreens[cDisplay].aScreenLocation.x, 521 pVBox->pScreens[cDisplay].aScreenLocation.y); 502 (void)output; (void)mode; 522 503 } 523 504 … … 1447 1428 #ifdef VBOXVIDEO_13 1448 1429 for (i = 0; i < pVBox->cScreens; ++i) 1449 vbox_ output_dpms(pVBox->pScreens[i].paOutputs, DPMSModeOff);1430 vbox_crtc_dpms(pVBox->pScreens[i].paCrtcs, DPMSModeOff); 1450 1431 #endif 1451 1432 vboxDisableVbva(pScrn); … … 1478 1459 1479 1460 for (i = 0; i < pVBox->cScreens; ++i) 1480 vbox_ output_dpms(pVBox->pScreens[i].paOutputs, DPMSModeOff);1461 vbox_crtc_dpms(pVBox->pScreens[i].paCrtcs, DPMSModeOff); 1481 1462 #endif 1482 1463 vboxDisableVbva(pScrn);
Note:
See TracChangeset
for help on using the changeset viewer.