VirtualBox

Ignore:
Timestamp:
Apr 17, 2015 3:25:44 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: we do not need a separate vbox_output_dpms() call-back.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r55332 r55334  
    500500vbox_output_dpms (xf86OutputPtr output, int mode)
    501501{
    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;
    522503}
    523504
     
    14471428#ifdef VBOXVIDEO_13
    14481429    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);
    14501431#endif
    14511432    vboxDisableVbva(pScrn);
     
    14781459
    14791460        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);
    14811462#endif
    14821463        vboxDisableVbva(pScrn);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette