Changeset 51423 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- May 27, 2014 12:00:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r51349 r51423 2325 2325 } 2326 2326 2327 bool IsCreated() 2327 bool IsCreated() const 2328 2328 { 2329 2329 return !!mSpuWindow; 2330 } 2331 2332 bool IsVisivle() const 2333 { 2334 return mFlags.fVisible; 2330 2335 } 2331 2336 … … 2852 2857 int winVisibilityChanged() 2853 2858 { 2859 HCR_FRAMEBUFFER hFb = getFramebuffer(); 2860 if (!hFb || !CrFbIsEnabled(hFb)) 2861 { 2862 Assert(!mpWindow->IsVisivle()); 2863 return VINF_SUCCESS; 2864 } 2865 2854 2866 int rc = mpWindow->UpdateBegin(); 2855 2867 if (RT_SUCCESS(rc)) … … 2905 2917 setRegionsChanged(); 2906 2918 2907 return mpWindow->SetSize((uint32_t)(pRect->xRight - pRect->xLeft), (uint32_t)(pRect->yBottom - pRect->yTop)); 2919 rc = mpWindow->SetSize((uint32_t)(pRect->xRight - pRect->xLeft), (uint32_t)(pRect->yBottom - pRect->yTop)); 2920 if (!RT_SUCCESS(rc)) 2921 { 2922 WARN(("SetSize failed rc %d", rc)); 2923 return rc; 2924 } 2925 2926 rc = mpWindow->SetVisible(!g_CrPresenter.fWindowsForceHidden); 2927 if (!RT_SUCCESS(rc)) 2928 { 2929 WARN(("SetVisible failed rc %d", rc)); 2930 return rc; 2931 } 2932 2933 return VINF_SUCCESS; 2908 2934 } 2909 2935 … … 2997 3023 } 2998 3024 2999 rc = mpWindow->SetVisible(!g_CrPresenter.fWindowsForceHidden); 3025 HCR_FRAMEBUFFER hFb = getFramebuffer(); 3026 rc = mpWindow->SetVisible(hFb && CrFbIsEnabled(hFb) && !g_CrPresenter.fWindowsForceHidden); 3000 3027 if (!RT_SUCCESS(rc)) 3001 3028 { … … 4637 4664 CR_FBDISPLAY_INFO *pDpInfo = &g_CrPresenter.aDisplayInfos[i]; 4638 4665 4639 if (pDpInfo->iFb < 0)4640 continue;4641 4642 4666 if (pDpInfo->pDpWin) 4643 4667 pDpInfo->pDpWin->winVisibilityChanged();
Note:
See TracChangeset
for help on using the changeset viewer.