Changeset 35612 in vbox
- Timestamp:
- Jan 18, 2011 2:34:31 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69509
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r35576 r35612 774 774 pFBInfo->fDefaultFormat = (usesGuestVRAM == FALSE); 775 775 776 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, pFBInfo->fDefaultFormat); 776 if (pFBInfo->fDisabled) 777 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, false); 778 else 779 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, 780 pFBInfo->fDefaultFormat); 777 781 } 778 782 else if (!pFBInfo->pFramebuffer.isNull()) … … 919 923 920 924 // if there is no framebuffer, this call is not interesting 921 if (pFramebuffer == NULL) 925 if ( pFramebuffer == NULL 926 || maFramebuffers[uScreenId].fDisabled) 922 927 return; 923 928 … … 964 969 if (!mpDrv) 965 970 return; 966 /* If VBVA is not in use then maFramebuffers will be zeroed out and this971 /* If VBVA is not in use then this flag will not be set and this 967 972 * will still work as it should. */ 968 if (!(maFramebuffers[0].f lags & VBVA_SCREEN_F_DISABLED))973 if (!(maFramebuffers[0].fDisabled)) 969 974 { 970 975 x2 = mpDrv->IConnector.cx + (int32_t)maFramebuffers[0].xOrigin; … … 973 978 for (unsigned i = 1; i < mcMonitors; ++i) 974 979 { 975 if (!(maFramebuffers[i].f lags & VBVA_SCREEN_F_DISABLED))980 if (!(maFramebuffers[i].fDisabled)) 976 981 { 977 982 x1 = RT_MIN(x1, maFramebuffers[i].xOrigin); … … 2542 2547 */ 2543 2548 if ( pFBInfo->fDefaultFormat 2544 && !(pFBInfo->f lags & VBVA_SCREEN_F_DISABLED))2549 && !(pFBInfo->fDisabled)) 2545 2550 { 2546 2551 address = NULL; … … 2667 2672 { 2668 2673 if ( !pFBInfo->pFramebuffer.isNull() 2669 && !(pFBInfo->f lags & VBVA_SCREEN_F_DISABLED))2674 && !(pFBInfo->fDisabled)) 2670 2675 { 2671 2676 /* Render complete VRAM screen to the framebuffer. … … 2836 2841 IFramebuffer *pFramebuffer = maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN].pFramebuffer; 2837 2842 2838 if ( pFramebuffer 2839 && !( maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN].flags 2840 & VBVA_SCREEN_F_DISABLED)) 2843 if (pFramebuffer) 2841 2844 { 2842 2845 HRESULT rc; … … 3595 3598 { 3596 3599 /* Make sure that framebuffer contains the same image as the guest VRAM. */ 3597 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN && !pFBInfo->pFramebuffer.isNull()) 3600 if ( uScreenId == VBOX_VIDEO_PRIMARY_SCREEN 3601 && !pFBInfo->pFramebuffer.isNull() 3602 && !pFBInfo->fDisabled) 3598 3603 { 3599 3604 pDrv->pUpPort->pfnUpdateDisplayRect (pDrv->pUpPort, pCmd->x, pCmd->y, pCmd->w, pCmd->h); 3600 3605 } 3601 3606 else if ( !pFBInfo->pFramebuffer.isNull() 3602 && !(pFBInfo->f lags & VBVA_SCREEN_F_DISABLED))3607 && !(pFBInfo->fDisabled)) 3603 3608 { 3604 3609 /* Render VRAM content to the framebuffer. */ … … 3723 3728 pThis->handleDisplayResize(pScreen->u32ViewIndex, 0, 3724 3729 (uint8_t *)NULL, 3725 0, 640, 480, pScreen->u16Flags); 3730 pScreen->u32LineSize, pScreen->u32Width, 3731 pScreen->u32Height, pScreen->u16Flags); 3726 3732 3727 3733 fireGuestMonitorChangedEvent(pThis->mParent->getEventSource(),
Note:
See TracChangeset
for help on using the changeset viewer.