VirtualBox

Changeset 3525 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 10, 2007 1:02:24 PM (18 years ago)
Author:
vboxsync
Message:

Added set and query visible region functions to PDMIDISPLAYPORT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r3155 r3525  
    37423742}
    37433743
     3744/** @copydoc PDMIDISPLAYPORT::pfnSetVisibleRegion */
     3745static DECLCALLBACK(int) vgaPortSetVisibleRegion(PPDMIDISPLAYPORT pInterface, uint32_t cRect, PPDMIDISPLAYRECT pRect)
     3746{
     3747    PVGASTATE pData = IDISPLAYPORT_2_VGASTATE(pInterface);
     3748
     3749    if (!cRect || !pRect)
     3750        return VERR_INVALID_PARAMETER;
     3751
     3752    /** @todo */
     3753    return VINF_SUCCESS;
     3754}
     3755
     3756
     3757/** @copydoc PDMIDISPLAYPORT::pfnQueryVisibleRegion */
     3758static DECLCALLBACK(int) vgaPortQueryVisibleRegion(PPDMIDISPLAYPORT pInterface, uint32_t *pcRect, PPDMIDISPLAYRECT pRect)
     3759{
     3760    PVGASTATE pData = IDISPLAYPORT_2_VGASTATE(pInterface);
     3761
     3762    if (!pcRect)
     3763        return VERR_INVALID_PARAMETER;
     3764
     3765    /** @todo */
     3766    *pcRect = 1;
     3767
     3768    if (pRect)
     3769    {
     3770        pRect->x  = 0;
     3771        pRect->y  = 0;
     3772        pRect->cx = pData->last_scr_width;
     3773        pRect->cy = pData->last_scr_height;
     3774    }
     3775
     3776    return VINF_SUCCESS;
     3777}
    37443778
    37453779/**
     
    46024636
    46034637    /* the interfaces. */
    4604     pData->Base.pfnQueryInterface   = vgaPortQueryInterface;
    4605 
    4606     pData->Port.pfnUpdateDisplay    = vgaPortUpdateDisplay;
    4607     pData->Port.pfnUpdateDisplayAll = vgaPortUpdateDisplayAll;
    4608     pData->Port.pfnQueryColorDepth  = vgaPortQueryColorDepth;
    4609     pData->Port.pfnSetRefreshRate   = vgaPortSetRefreshRate;
    4610     pData->Port.pfnSnapshot         = vgaPortSnapshot;
    4611     pData->Port.pfnDisplayBlt       = vgaPortDisplayBlt;
    4612     pData->Port.pfnUpdateDisplayRect= vgaPortUpdateDisplayRect;
    4613     pData->Port.pfnSetRenderVRAM    = vgaPortSetRenderVRAM;
     4638    pData->Base.pfnQueryInterface       = vgaPortQueryInterface;
     4639
     4640    pData->Port.pfnUpdateDisplay        = vgaPortUpdateDisplay;
     4641    pData->Port.pfnUpdateDisplayAll     = vgaPortUpdateDisplayAll;
     4642    pData->Port.pfnQueryColorDepth      = vgaPortQueryColorDepth;
     4643    pData->Port.pfnSetRefreshRate       = vgaPortSetRefreshRate;
     4644    pData->Port.pfnSnapshot             = vgaPortSnapshot;
     4645    pData->Port.pfnDisplayBlt           = vgaPortDisplayBlt;
     4646    pData->Port.pfnUpdateDisplayRect    = vgaPortUpdateDisplayRect;
     4647    pData->Port.pfnSetRenderVRAM        = vgaPortSetRenderVRAM;
     4648    pData->Port.pfnSetVisibleRegion     = vgaPortSetVisibleRegion;
     4649    pData->Port.pfnQueryVisibleRegion   = vgaPortQueryVisibleRegion;
    46144650
    46154651
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