- Timestamp:
- May 13, 2015 6:56:40 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmifs.h
r54591 r55838 524 524 525 525 /** 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). 527 527 * 528 528 * As the graphics card is able to provide display updates with the bpp … … 533 533 * @param pInterface Pointer to this interface. 534 534 * @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)); 538 540 539 541 /** … … 704 706 /** PDMIDISPLAYPORT interface ID. */ 705 707 #ifdef VBOX_WITH_VMSVGA 706 #define PDMIDISPLAYPORT_IID " e8da6d7e-8490-11e4-91d8-ab609a010f13"708 #define PDMIDISPLAYPORT_IID "9672e2b0-1aef-4c4d-9108-864cdb28333f" 707 709 #else 708 #define PDMIDISPLAYPORT_IID " db067c60-8490-11e4-8424-032afeb83818"710 #define PDMIDISPLAYPORT_IID "323f3412-8903-4564-b04c-cbfe0d2d1596" 709 711 #endif 710 712 -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r55796 r55838 4771 4771 4772 4772 4773 /** @copydoc PDMIDISPLAYPORT::pfnQuery ColorDepth*/4774 static DECLCALLBACK(int) vgaPortQuery ColorDepth(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits)4773 /** @copydoc PDMIDISPLAYPORT::pfnQueryVideoMode */ 4774 static DECLCALLBACK(int) vgaPortQueryVideoMode(PPDMIDISPLAYPORT pInterface, uint32_t *pcBits, uint32_t *pcx, uint32_t *pcy) 4775 4775 { 4776 4776 PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface); … … 4779 4779 return VERR_INVALID_PARAMETER; 4780 4780 *pcBits = vga_get_bpp(pThis); 4781 if (pcx) 4782 *pcx = pThis->last_scr_width; 4783 if (pcy) 4784 *pcy = pThis->last_scr_height; 4781 4785 return VINF_SUCCESS; 4782 4786 } … … 6112 6116 pThis->IPort.pfnUpdateDisplay = vgaPortUpdateDisplay; 6113 6117 pThis->IPort.pfnUpdateDisplayAll = vgaPortUpdateDisplayAll; 6114 pThis->IPort.pfnQuery ColorDepth = vgaPortQueryColorDepth;6118 pThis->IPort.pfnQueryVideoMode = vgaPortQueryVideoMode; 6115 6119 pThis->IPort.pfnSetRefreshRate = vgaPortSetRefreshRate; 6116 6120 pThis->IPort.pfnTakeScreenshot = vgaPortTakeScreenshot;
Note:
See TracChangeset
for help on using the changeset viewer.