Changeset 45133 in vbox
- Timestamp:
- Mar 22, 2013 5:51:03 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp
r45132 r45133 1654 1654 { 1655 1655 bool fChanged; 1656 CrVrScrCompositorEntryIsInList(pEntry); 1656 1657 int rc = VBoxVrCompositorEntryRegionsSet(&pCompositor->Compositor, &pEntry->Ce, cRegions, paRegions, &fChanged); 1657 1658 if (!RT_SUCCESS(rc)) … … 1663 1664 if (fChanged) 1664 1665 { 1666 CrVrScrCompositorEntrySetChanged(pEntry, true); 1667 if (!CrVrScrCompositorEntryIsInList(pEntry)) 1668 { 1669 pEntry->cRects = 0; 1670 pEntry->paSrcRects = NULL; 1671 pEntry->paDstRects = NULL; 1672 } 1665 1673 crVrScrCompositorRectsInvalidate(pCompositor); 1666 1674 } … … 1675 1683 static int crVrScrCompositorEntryPositionSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, bool *pfChanged) 1676 1684 { 1685 if (pfChanged) 1686 *pfChanged = false; 1677 1687 if (pEntry && (pEntry->Pos.x != pPos->x || pEntry->Pos.y != pPos->y)) 1678 1688 { … … 1691 1701 pEntry->Pos = *pPos; 1692 1702 CrVrScrCompositorEntrySetChanged(pEntry, true); 1703 1704 if (pfChanged) 1705 *pfChanged = true; 1693 1706 } 1694 1707 return VINF_SUCCESS; … … 1733 1746 VBOXVREGDECL(int) CrVrScrCompositorEntryRegionsSet(PVBOXVR_SCR_COMPOSITOR pCompositor, PVBOXVR_SCR_COMPOSITOR_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions, bool *pfChanged) 1734 1747 { 1748 /* @todo: the fChanged sate calculation is really rough now, this is enough for now though */ 1735 1749 bool fChanged = false, fPosChanged = false; 1750 bool fWasInList = CrVrScrCompositorEntryIsInList(pEntry); 1736 1751 int rc = CrVrScrCompositorEntryRemove(pCompositor, pEntry); 1737 1752 if (!RT_SUCCESS(rc)) … … 1759 1774 1760 1775 if (pfChanged) 1761 *pfChanged = fPosChanged || fChanged ;1776 *pfChanged = fPosChanged || fChanged || fWasInList; 1762 1777 1763 1778 return VINF_SUCCESS; … … 1903 1918 return VINF_SUCCESS; 1904 1919 1920 CrVrScrCompositorEntrySetChanged(pEntry, true); 1921 pEntry->cRects = 0; 1922 pEntry->paSrcRects = NULL; 1923 pEntry->paDstRects = NULL; 1924 1905 1925 crVrScrCompositorRectsInvalidate(pCompositor); 1906 1926 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.