Changeset 27724 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 26, 2010 10:22:13 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r27720 r27724 4045 4045 mpOverlayWgt = NULL; 4046 4046 mOverlayWidgetVisible = false; 4047 initGl();4048 4047 Assert(!mOverlayVisible); 4048 if (pViewport) 4049 { 4050 initGl(); 4049 4051 // vboxDoCheckUpdateViewport(); 4052 } 4053 Assert(!mOverlayVisible); 4054 4050 4055 } 4051 4056 mGlCurrent = false; … … 4764 4769 } 4765 4770 4766 void VBoxVHWACommandElementProcessor::updatePostEventObject(QObject * m_pObject)4771 void VBoxVHWACommandElementProcessor::updatePostEventObject(QObject *pObject) 4767 4772 { 4768 4773 int cEventsNeeded = 0; 4769 4774 const VBoxVHWACommandElement * pFirst; 4770 4775 RTCritSectEnter(&mCritSect); 4771 m_pParent = m_pObject;4776 m_pParent = pObject; 4772 4777 4773 4778 pFirst = m_CmdPipe.contentsRo(NULL); … … 4779 4784 RTCritSectLeave(&mCritSect); 4780 4785 4781 for (int i = 0; i < cEventsNeeded; ++i) 4782 { 4783 VBoxVHWACommandProcessEvent *pCurrentEvent = new VBoxVHWACommandProcessEvent(); 4784 QApplication::postEvent (m_pParent, pCurrentEvent); 4786 if (pObject) 4787 { 4788 for (int i = 0; i < cEventsNeeded; ++i) 4789 { 4790 VBoxVHWACommandProcessEvent *pCurrentEvent = new VBoxVHWACommandProcessEvent(); 4791 QApplication::postEvent (m_pParent, pCurrentEvent); 4792 } 4785 4793 } 4786 4794 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r27720 r27724 1863 1863 : T (pView), 1864 1864 mpOverlay (pOverlay), 1865 mpView (pView) 1865 mpView (pView), 1866 mbDestroyOverlay (false) 1866 1867 {} 1867 1868 … … 1869 1870 : T (pView), 1870 1871 mpOverlay (new VBoxQGLOverlay(pWidget, pView, aSession)), 1871 mpView (pView) 1872 mpView (pView), 1873 mbDestroyOverlay (true) 1872 1874 {} 1873 1875 1876 virtual ~VBoxOverlayFrameBuffer() 1877 { 1878 if (mbDestroyOverlay) 1879 delete mpOverlay; 1880 else 1881 { 1882 HRESULT hr = Lock(); 1883 Assert(hr == S_OK); 1884 if (SUCCEEDED(hr)) 1885 { 1886 mpOverlay->updateAttachment(NULL, NULL); 1887 hr = Unlock(); 1888 Assert(hr == S_OK); 1889 } 1890 } 1891 } 1874 1892 1875 1893 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand) … … 1930 1948 VBoxQGLOverlay *mpOverlay; 1931 1949 V *mpView; 1950 bool mbDestroyOverlay; 1932 1951 }; 1933 1952
Note:
See TracChangeset
for help on using the changeset viewer.