VirtualBox

Ignore:
Timestamp:
Aug 7, 2013 6:02:07 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: more TexPresent fixes & saved state impl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r47577 r47599  
    27012701    if (pMI->screenId == *sIndex)
    27022702    {
    2703         crServerVBoxCompositionDisableEnter(pMI);
    2704 
    2705         pMI->fHasParentWindow = !!cr_server.screen[pMI->screenId].winID;
    2706 
    2707         renderspuReparentWindow(pMI->spuWindow);
    2708 
    2709         crServerVBoxCompositionDisableLeave(pMI, GL_FALSE);
     2703        crServerWindowReparent(pMI);
    27102704    }
    27112705}
     
    27532747    if (MAPPED(SCREEN(sIndex)))
    27542748    {
     2749        PCR_DISPLAY pDisplay = crServerDisplayGetInitialized(sIndex);
     2750
    27552751        SCREEN(sIndex).winID = 0;
    27562752        renderspuSetWindowId(0);
     
    27592755
    27602756        crHashtableWalk(cr_server.dummyMuralTable, crVBoxServerReparentMuralCB, &sIndex);
     2757
     2758        if (pDisplay)
     2759            CrDpReparent(pDisplay, &SCREEN(sIndex));
    27612760    }
    27622761
     
    28312830        PCR_DISPLAY pDisplay = crServerDisplayGetInitialized(sIndex);
    28322831        if (pDisplay)
    2833             CrDpResize(pDisplay, x, y, w, h);
     2832            CrDpReparent(pDisplay, &SCREEN(sIndex));
    28342833    }
    28352834
     
    30363035
    30373036        /* no need to do anything here actually */
     3037    }
     3038
     3039    if (fPosChanged || fSizeChanged)
     3040    {
     3041        PCR_DISPLAY pDisplay = crServerDisplayGetInitialized(sIndex);
     3042        if (pDisplay)
     3043            CrDpResize(pDisplay, SCREEN(sIndex).x, SCREEN(sIndex).y, SCREEN(sIndex).w, SCREEN(sIndex).h);
    30383044    }
    30393045    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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