Changeset 25985 in vbox for trunk/src/VBox/Main/DisplayImpl.cpp
- Timestamp:
- Jan 23, 2010 12:51:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DisplayImpl.cpp
r25971 r25985 58 58 PPDMIDISPLAYPORT pUpPort; 59 59 /** Our display connector interface. */ 60 PDMIDISPLAYCONNECTOR Connector;60 PDMIDISPLAYCONNECTOR IConnector; 61 61 #if defined(VBOX_WITH_VIDEOHWACCEL) 62 62 /** VBVA callbacks */ … … 66 66 67 67 /** Converts PDMIDISPLAYCONNECTOR pointer to a DRVMAINDISPLAY pointer. */ 68 #define PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface) RT_FROM_MEMBER(pInterface, DRVMAINDISPLAY, Connector)68 #define PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface) RT_FROM_MEMBER(pInterface, DRVMAINDISPLAY, IConnector) 69 69 70 70 #ifdef DEBUG_sunlover … … 1001 1001 #ifdef DEBUG_sunlover 1002 1002 LogFlowFunc (("%d,%d %dx%d (%d,%d)\n", 1003 x, y, w, h, mpDrv-> Connector.cx, mpDrv->Connector.cy));1003 x, y, w, h, mpDrv->IConnector.cx, mpDrv->IConnector.cy)); 1004 1004 #endif /* DEBUG_sunlover */ 1005 1005 … … 1019 1019 1020 1020 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN) 1021 checkCoordBounds (&x, &y, &w, &h, mpDrv-> Connector.cx, mpDrv->Connector.cy);1021 checkCoordBounds (&x, &y, &w, &h, mpDrv->IConnector.cx, mpDrv->IConnector.cy); 1022 1022 else 1023 1023 checkCoordBounds (&x, &y, &w, &h, maFramebuffers[uScreenId].w, … … 1947 1947 CHECK_CONSOLE_DRV (mpDrv); 1948 1948 1949 *width = mpDrv-> Connector.cx;1949 *width = mpDrv->IConnector.cx; 1950 1950 1951 1951 return S_OK; … … 1969 1969 CHECK_CONSOLE_DRV (mpDrv); 1970 1970 1971 *height = mpDrv-> Connector.cy;1971 *height = mpDrv->IConnector.cy; 1972 1972 1973 1973 return S_OK; … … 2083 2083 ULONG width = aWidth; 2084 2084 if (!width) 2085 width = mpDrv-> Connector.cx;2085 width = mpDrv->IConnector.cx; 2086 2086 ULONG height = aHeight; 2087 2087 if (!height) 2088 height = mpDrv-> Connector.cy;2088 height = mpDrv->IConnector.cy; 2089 2089 ULONG bpp = aBitsPerPixel; 2090 2090 if (!bpp) … … 2613 2613 } 2614 2614 2615 mpDrv-> Connector.pu8Data = (uint8_t *) address;2616 mpDrv-> Connector.cbScanline = bytesPerLine;2617 mpDrv-> Connector.cBits = bitsPerPixel;2618 mpDrv-> Connector.cx = width;2619 mpDrv-> Connector.cy = height;2615 mpDrv->IConnector.pu8Data = (uint8_t *) address; 2616 mpDrv->IConnector.cbScanline = bytesPerLine; 2617 mpDrv->IConnector.cBits = bitsPerPixel; 2618 mpDrv->IConnector.cx = width; 2619 mpDrv->IConnector.cy = height; 2620 2620 } 2621 2621 else 2622 2622 { 2623 2623 /* black hole */ 2624 mpDrv-> Connector.pu8Data = NULL;2625 mpDrv-> Connector.cbScanline = 0;2626 mpDrv-> Connector.cBits = 0;2627 mpDrv-> Connector.cx = 0;2628 mpDrv-> Connector.cy = 0;2624 mpDrv->IConnector.pu8Data = NULL; 2625 mpDrv->IConnector.cbScanline = 0; 2626 mpDrv->IConnector.cBits = 0; 2627 mpDrv->IConnector.cx = 0; 2628 mpDrv->IConnector.cy = 0; 2629 2629 } 2630 2630 } … … 2780 2780 if (!pFBInfo->pFramebuffer.isNull() && pFBInfo->u32ResizeStatus == ResizeStatus_Void) 2781 2781 { 2782 Assert(pDrv-> Connector.pu8Data);2782 Assert(pDrv->IConnector.pu8Data); 2783 2783 pDisplay->vbvaLock(); 2784 2784 pDrv->pUpPort->pfnUpdateDisplay(pDrv->pUpPort); … … 2841 2841 if (!pFBInfo->pFramebuffer.isNull()) 2842 2842 { 2843 Assert(pDrv-> Connector.pu8Data);2843 Assert(pDrv->IConnector.pu8Data); 2844 2844 Assert(pFBInfo->u32ResizeStatus == ResizeStatus_Void); 2845 2845 pDrv->pUpPort->pfnUpdateDisplay(pDrv->pUpPort); … … 3369 3369 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); 3370 3370 PDRVMAINDISPLAY pDrv = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); 3371 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 3372 return &pDrvIns->IBase; 3373 if (RTUuidCompare2Strs(pszIID, PDMIDISPLAYCONNECTOR_IID) == 0) 3374 return &pDrv->Connector; 3371 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase); 3372 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIDISPLAYCONNECTOR, &pDrv->IConnector); 3375 3373 return NULL; 3376 3374 } … … 3423 3421 * Init Interfaces. 3424 3422 */ 3425 pDrvIns->IBase.pfnQueryInterface = Display::drvQueryInterface;3426 3427 pData-> Connector.pfnResize = Display::displayResizeCallback;3428 pData-> Connector.pfnUpdateRect = Display::displayUpdateCallback;3429 pData-> Connector.pfnRefresh = Display::displayRefreshCallback;3430 pData-> Connector.pfnReset = Display::displayResetCallback;3431 pData-> Connector.pfnLFBModeChange = Display::displayLFBModeChangeCallback;3432 pData-> Connector.pfnProcessAdapterData = Display::displayProcessAdapterDataCallback;3433 pData-> Connector.pfnProcessDisplayData = Display::displayProcessDisplayDataCallback;3423 pDrvIns->IBase.pfnQueryInterface = Display::drvQueryInterface; 3424 3425 pData->IConnector.pfnResize = Display::displayResizeCallback; 3426 pData->IConnector.pfnUpdateRect = Display::displayUpdateCallback; 3427 pData->IConnector.pfnRefresh = Display::displayRefreshCallback; 3428 pData->IConnector.pfnReset = Display::displayResetCallback; 3429 pData->IConnector.pfnLFBModeChange = Display::displayLFBModeChangeCallback; 3430 pData->IConnector.pfnProcessAdapterData = Display::displayProcessAdapterDataCallback; 3431 pData->IConnector.pfnProcessDisplayData = Display::displayProcessDisplayDataCallback; 3434 3432 #ifdef VBOX_WITH_VIDEOHWACCEL 3435 pData-> Connector.pfnVHWACommandProcess = Display::displayVHWACommandProcess;3433 pData->IConnector.pfnVHWACommandProcess = Display::displayVHWACommandProcess; 3436 3434 #endif 3437 3435 #ifdef VBOX_WITH_HGSMI 3438 pData-> Connector.pfnVBVAEnable = Display::displayVBVAEnable;3439 pData-> Connector.pfnVBVADisable = Display::displayVBVADisable;3440 pData-> Connector.pfnVBVAUpdateBegin = Display::displayVBVAUpdateBegin;3441 pData-> Connector.pfnVBVAUpdateProcess = Display::displayVBVAUpdateProcess;3442 pData-> Connector.pfnVBVAUpdateEnd = Display::displayVBVAUpdateEnd;3443 pData-> Connector.pfnVBVAResize = Display::displayVBVAResize;3444 pData-> Connector.pfnVBVAMousePointerShape = Display::displayVBVAMousePointerShape;3436 pData->IConnector.pfnVBVAEnable = Display::displayVBVAEnable; 3437 pData->IConnector.pfnVBVADisable = Display::displayVBVADisable; 3438 pData->IConnector.pfnVBVAUpdateBegin = Display::displayVBVAUpdateBegin; 3439 pData->IConnector.pfnVBVAUpdateProcess = Display::displayVBVAUpdateProcess; 3440 pData->IConnector.pfnVBVAUpdateEnd = Display::displayVBVAUpdateEnd; 3441 pData->IConnector.pfnVBVAResize = Display::displayVBVAResize; 3442 pData->IConnector.pfnVBVAMousePointerShape = Display::displayVBVAMousePointerShape; 3445 3443 #endif 3446 3444
Note:
See TracChangeset
for help on using the changeset viewer.