Changeset 55133 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 8, 2015 1:12:53 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r53624 r55133 208 208 static ULONG gcMonitors = 1; 209 209 static ComObjPtr<VBoxSDLFB> gpFramebuffer[64]; 210 static Bstr gaFramebufferId[64]; 210 211 static SDL_Cursor *gpDefaultCursor = NULL; 211 212 #ifdef VBOXSDL_WITH_X11 … … 2008 2009 { 2009 2010 // register our framebuffer 2010 rc = gpDisplay->AttachFramebuffer(i, gpFramebuffer[i] );2011 rc = gpDisplay->AttachFramebuffer(i, gpFramebuffer[i], gaFramebufferId[i].asOutParam()); 2011 2012 if (FAILED(rc)) 2012 2013 { … … 3028 3029 { 3029 3030 for (unsigned i = 0; i < gcMonitors; i++) 3030 gpDisplay->DetachFramebuffer(i );3031 gpDisplay->DetachFramebuffer(i, gaFramebufferId[i].raw()); 3031 3032 } 3032 3033 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r55113 r55133 381 381 CComPtr <IUnknown> m_pUnkMarshaler; 382 382 #endif /* Q_OS_WIN */ 383 /** Identifier returned by AttachFramebuffer. Used in DetachFramebuffer. */ 384 QString m_strFramebufferId; 383 385 }; 384 386 … … 599 601 void UIFrameBufferPrivate::attach() 600 602 { 601 display().AttachFramebuffer(m_uScreenId, CFramebuffer(this));603 m_strFramebufferId = display().AttachFramebuffer(m_uScreenId, CFramebuffer(this)); 602 604 } 603 605 … … 606 608 CFramebuffer frameBuffer = display().QueryFramebuffer(m_uScreenId); 607 609 if (!frameBuffer.isNull()) 608 display().DetachFramebuffer(m_uScreenId); 610 { 611 display().DetachFramebuffer(m_uScreenId, m_strFramebufferId); 612 m_strFramebufferId.clear(); 613 } 609 614 } 610 615
Note:
See TracChangeset
for help on using the changeset viewer.