VirtualBox

Changeset 55838 in vbox for trunk


Ignore:
Timestamp:
May 13, 2015 6:56:40 AM (10 years ago)
Author:
vboxsync
Message:

DevVGA: pfnQueryColorDepth -> pfnQueryVideoMode

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmifs.h

    r54591 r55838  
    524524
    525525    /**
    526      * Return the current guest color depth in bits per pixel (bpp).
     526     * Return the current guest resolution and color depth in bits per pixel (bpp).
    527527     *
    528528     * As the graphics card is able to provide display updates with the bpp
     
    533533     * @param   pInterface         Pointer to this interface.
    534534     * @param   pcBits             Where to store the current guest color depth.
    535      * @thread  Any thread.
    536      */
    537     DECLR3CALLBACKMEMBER(int, pfnQueryColorDepth,(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits));
     535     * @param   pcx                Where to store the horizontal resolution.
     536     * @param   pcy                Where to store the vertical resolution.
     537     * @thread  Any thread.
     538     */
     539    DECLR3CALLBACKMEMBER(int, pfnQueryVideoMode,(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits, uint32_t *pcx, uint32_t *pcy));
    538540
    539541    /**
     
    704706/** PDMIDISPLAYPORT interface ID. */
    705707#ifdef VBOX_WITH_VMSVGA
    706 #define PDMIDISPLAYPORT_IID                     "e8da6d7e-8490-11e4-91d8-ab609a010f13"
     708#define PDMIDISPLAYPORT_IID                     "9672e2b0-1aef-4c4d-9108-864cdb28333f"
    707709#else
    708 #define PDMIDISPLAYPORT_IID                     "db067c60-8490-11e4-8424-032afeb83818"
     710#define PDMIDISPLAYPORT_IID                     "323f3412-8903-4564-b04c-cbfe0d2d1596"
    709711#endif
    710712
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r55796 r55838  
    47714771
    47724772
    4773 /** @copydoc PDMIDISPLAYPORT::pfnQueryColorDepth */
    4774 static DECLCALLBACK(int) vgaPortQueryColorDepth(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits)
     4773/** @copydoc PDMIDISPLAYPORT::pfnQueryVideoMode */
     4774static DECLCALLBACK(int) vgaPortQueryVideoMode(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits, uint32_t *pcx, uint32_t *pcy)
    47754775{
    47764776    PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface);
     
    47794779        return VERR_INVALID_PARAMETER;
    47804780    *pcBits = vga_get_bpp(pThis);
     4781    if (pcx)
     4782        *pcx = pThis->last_scr_width;
     4783    if (pcy)
     4784        *pcy = pThis->last_scr_height;
    47814785    return VINF_SUCCESS;
    47824786}
     
    61126116    pThis->IPort.pfnUpdateDisplay       = vgaPortUpdateDisplay;
    61136117    pThis->IPort.pfnUpdateDisplayAll    = vgaPortUpdateDisplayAll;
    6114     pThis->IPort.pfnQueryColorDepth     = vgaPortQueryColorDepth;
     6118    pThis->IPort.pfnQueryVideoMode      = vgaPortQueryVideoMode;
    61156119    pThis->IPort.pfnSetRefreshRate      = vgaPortSetRefreshRate;
    61166120    pThis->IPort.pfnTakeScreenshot      = vgaPortTakeScreenshot;
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