VirtualBox

Ignore:
Timestamp:
May 28, 2014 9:12:15 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93991
Message:

Main,Frontends: IDisplay provides the guest screen bitmap to frontends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r51361 r51436  
    231231    ComPtr<IDisplay> pDisplay;
    232232    ComPtr<IFramebuffer> pFramebuffer;
    233     LONG xo, yo;
    234233
    235234    if (!g_pConsole)
     
    241240    CHECK_ERROR2_STMT(g_pConsole, COMGETTER(Display)(pDisplay.asOutParam()), return);
    242241
    243     CHECK_ERROR2_STMT(pDisplay, GetFramebuffer(screenId, pFramebuffer.asOutParam(), &xo, &yo), return);
     242    CHECK_ERROR2_STMT(pDisplay, QueryFramebuffer(screenId, pFramebuffer.asOutParam()), return);
    244243
    245244    if (!pFramebuffer)
     
    11061105                    for (i=0; i<monitorCount; ++i)
    11071106                    {
    1108                         CHECK_ERROR_RET(pDisplay, GetFramebuffer(i, pFramebuffer.asOutParam(), &xo, &yo), rc);
     1107                        CHECK_ERROR_RET(pDisplay, QueryFramebuffer(i, pFramebuffer.asOutParam()), rc);
    11091108
    11101109                        if (!pFramebuffer)
     
    11181117                            CHECK_ERROR_RET(pFramebuffer, COMGETTER(Width)(&w), rc);
    11191118                            CHECK_ERROR_RET(pFramebuffer, COMGETTER(Height)(&h), rc);
     1119                            CHECK_ERROR_RET(pDisplay, GetScreenResolution(i, NULL, NULL, NULL, &xo, &yo), rc);
    11201120
    11211121                            rc = crVBoxServerMapScreen(i, xo, yo, w, h, winId);
     
    12131213                Assert(g_pConsole);
    12141214                CHECK_ERROR_RET(g_pConsole, COMGETTER(Display)(pDisplay.asOutParam()), rc);
    1215                 CHECK_ERROR_RET(pDisplay, GetFramebuffer(screenId, pFramebuffer.asOutParam(), &xo, &yo), rc);
     1215                CHECK_ERROR_RET(pDisplay, QueryFramebuffer(screenId, pFramebuffer.asOutParam()), rc);
    12161216
    12171217                crServerVBoxCompositionSetEnableStateGlobal(GL_FALSE);
     
    12451245                            CHECK_ERROR_BREAK(pFramebuffer, COMGETTER(Width)(&w));
    12461246                            CHECK_ERROR_BREAK(pFramebuffer, COMGETTER(Height)(&h));
     1247                            CHECK_ERROR_BREAK(pDisplay, GetScreenResolution(screenId, NULL, NULL, NULL, &xo, &yo));
    12471248
    12481249                            rc = crVBoxServerMapScreen(screenId, xo, yo, w, h, winId);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette