VirtualBox

Changeset 37708 in vbox


Ignore:
Timestamp:
Jun 30, 2011 1:20:43 PM (14 years ago)
Author:
vboxsync
Message:

WDDM/3d: force desktop repaint after visibile region changes changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r36848 r37708  
    858858    if (hNewRgn!=INVALID_HANDLE_VALUE)
    859859    {
     860        if (pRegions->pRegions->fFlags.bSetVisibleRects)
     861        {
     862            HRGN hEmptyRgn = CreateRectRgn(0, 0, 0, 0);
     863
     864            if (hEmptyRgn!=INVALID_HANDLE_VALUE)
     865            {
     866                if (pWindow->hVisibleRegion==INVALID_HANDLE_VALUE || EqualRgn(pWindow->hVisibleRegion, hEmptyRgn))
     867                {
     868                    SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0, SMTO_NORMAL, 1000, NULL);
     869                }
     870
     871                DeleteObject(hEmptyRgn);
     872            }
     873            else
     874            {
     875                crWarning("Failed to created empty region!");
     876            }
     877        }
     878
    860879        OffsetRgn(hNewRgn, -pWindow->x, -pWindow->y);
    861880
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