- Timestamp:
- Nov 18, 2013 3:41:20 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90713
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r49485 r49535 2595 2595 else 2596 2596 { 2597 Assert(pList); 2597 2598 Assert(pList->size() >= 1); 2598 2599 if(pList->size() > 1) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r49431 r49535 1016 1016 1017 1017 VBoxVHWASurfList() : mCurrent(NULL) {} 1018 1019 void moveTo(VBoxVHWASurfList *pDst) 1020 { 1021 for (SurfList::iterator it = mSurfaces.begin(); 1022 it != mSurfaces.end(); it = mSurfaces.begin()) 1023 { 1024 pDst->add((*it)); 1025 } 1026 1027 Assert(empty()); 1028 } 1029 1018 1030 void add(VBoxVHWASurfaceBase *pSurf) 1019 1031 { … … 1026 1038 pSurf->setComplexList(this); 1027 1039 } 1028 1040 /* 1029 1041 void clear() 1030 1042 { … … 1037 1049 mCurrent = NULL; 1038 1050 } 1039 1051 */ 1040 1052 size_t size() const {return mSurfaces.size(); } 1041 1053 … … 1078 1090 VBoxVHWASurfaceBase * old = mSurfVGA; 1079 1091 mSurfVGA = pVga; 1080 mPrimary.clear(); 1092 if (!mPrimary.empty()) 1093 { 1094 VBoxVHWASurfList *pNewList = new VBoxVHWASurfList(); 1095 mPrimary.moveTo(pNewList); 1096 Assert(mPrimary.empty()); 1097 } 1081 1098 if(pVga) 1082 1099 {
Note:
See TracChangeset
for help on using the changeset viewer.