- Timestamp:
- Oct 23, 2013 5:57:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp
r49169 r49265 76 76 (unsigned long)aCount)); 77 77 78 /* Make sure rectangles were passed: */ 79 if (!pRectangles) 80 { 81 LogRel2(("UIFrameBufferQuartz2D::SetVisibleRegion: Invalid pRectangles pointer!\n")); 82 83 return E_POINTER; 84 } 85 86 /* Lock access to frame-buffer: */ 87 lock(); 88 78 89 /* Make sure frame-buffer is used: */ 79 if ( isMarkedAsUnused())90 if (m_fIsMarkedAsUnused) 80 91 { 81 92 LogRel2(("UIFrameBufferQuartz2D::SetVisibleRegion: Ignored!\n")); 93 94 /* Unlock access to frame-buffer: */ 95 unlock(); 82 96 83 97 /* Ignore SetVisibleRegion: */ 84 98 return E_FAIL; 85 99 } 86 87 /* Make sure rectangles were passed: */88 PRTRECT rects = (PRTRECT)pRectangles;89 if (!rects)90 return E_POINTER;91 100 92 101 /** @todo r=bird: Is this thread safe? If I remember the code flow correctly, the … … 108 117 rgnRcts = (RegionRects *)RTMemAlloc(RT_OFFSETOF(RegionRects, rcts[allocated])); 109 118 if (!rgnRcts) 119 { 120 /* Unlock access to frame-buffer: */ 121 unlock(); 122 110 123 return E_OUTOFMEMORY; 124 } 111 125 rgnRcts->allocated = allocated; 112 126 } … … 115 129 /* Compose region: */ 116 130 QRegion reg; 131 PRTRECT rects = (PRTRECT)pRectangles; 117 132 QRect vmScreenRect(0, 0, width(), height()); 118 133 for (ULONG ind = 0; ind < aCount; ++ ind) … … 153 168 LogRel2(("UIFrameBufferQuartz2D::SetVisibleRegion: Sending to async-handler...\n")); 154 169 emit sigSetVisibleRegion(reg); 170 171 /* Unlock access to frame-buffer: */ 172 unlock(); 155 173 156 174 /* Confirm SetVisibleRegion: */
Note:
See TracChangeset
for help on using the changeset viewer.