Changeset 51525 in vbox for trunk/src/VBox
- Timestamp:
- Jun 4, 2014 8:32:22 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94154
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r51476 r51525 215 215 void VideoCaptureStop(); 216 216 int VideoCaptureEnableScreens(ComSafeArrayIn(BOOL, aScreens)); 217 218 void notifyPowerDown(void); 217 219 218 220 // IEventListener methods … … 331 333 DISPLAYFBINFO maFramebuffers[SchemaDefs::MaxGuestMonitors]; 332 334 335 bool mfSourceBitmapEnabled; 336 333 337 /* arguments of the last handleDisplayResize() call */ 334 338 void *mLastAddress; -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r51476 r51525 7350 7350 * safe to release the object lock now if needed) 7351 7351 * ---------------------------------------------------------------------- */ 7352 7353 if (mDisplay) 7354 { 7355 alock.release(); 7356 7357 mDisplay->notifyPowerDown(); 7358 7359 alock.acquire(); 7360 } 7352 7361 7353 7362 /* Stop the VRDP server to prevent new clients connection while VM is being -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r51513 r51525 597 597 598 598 unconst(mParent) = aParent; 599 600 mfSourceBitmapEnabled = true; 599 601 600 602 ULONG ul; … … 2366 2368 } 2367 2369 2370 void Display::notifyPowerDown(void) 2371 { 2372 LogRelFlowFunc(("\n")); 2373 2374 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2375 2376 /* Source bitmaps are not available anymore. */ 2377 mfSourceBitmapEnabled = false; 2378 2379 /* Resize all displays to tell framebuffers to forget current source bitmap. */ 2380 unsigned uScreenId = mcMonitors; 2381 while (uScreenId > 0) 2382 { 2383 --uScreenId; 2384 2385 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId]; 2386 if (!pFBInfo->fDisabled) 2387 { 2388 handleDisplayResize(uScreenId, 32, 2389 NULL, 2390 0, 2391 pFBInfo->w, 2392 pFBInfo->h, 2393 0); 2394 } 2395 } 2396 } 2397 2368 2398 // IDisplay methods 2369 2399 ///////////////////////////////////////////////////////////////////////////// … … 3728 3758 { 3729 3759 HRESULT hr = S_OK; 3760 3761 if (!mfSourceBitmapEnabled) 3762 { 3763 *ppDisplaySourceBitmap = NULL; 3764 return E_FAIL; 3765 } 3730 3766 3731 3767 DISPLAYFBINFO *pFBInfo = &maFramebuffers[aScreenId];
Note:
See TracChangeset
for help on using the changeset viewer.