- Timestamp:
- Aug 19, 2010 6:08:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64990
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r31579 r31798 67 67 #endif 68 68 69 #include "NullFramebuffer.h" 69 70 70 71 //////////////////////////////////////////////////////////////////////////////// … … 89 90 static VNCFB *g_pFramebufferVNC; 90 91 #endif 91 92 92 93 93 //////////////////////////////////////////////////////////////////////////////// … … 907 907 machine->COMGETTER(MonitorCount)(&cMonitors); 908 908 909 unsigned uScreenId; 909 910 #ifdef VBOX_WITH_VRDP 910 unsigned uScreenId;911 911 for (uScreenId = 0; uScreenId < cMonitors; uScreenId++) 912 912 { … … 939 939 } 940 940 #endif 941 // fill in remaining slots with null framebuffers 942 for (uScreenId = 0; uScreenId < cMonitors; uScreenId++) 943 { 944 ComPtr<IFramebuffer> fb; 945 LONG xOrigin, yOrigin; 946 HRESULT hrc2 = display->GetFramebuffer(uScreenId, 947 fb.asOutParam(), 948 &xOrigin, &yOrigin); 949 if (hrc2 == S_OK && fb.isNull()) 950 { 951 NullFB *pNullFB = new NullFB(); 952 pNullFB->AddRef(); 953 pNullFB->init(); 954 display->SetFramebuffer(uScreenId, pNullFB); 955 } 956 } 941 957 942 958 /* get the machine debugger (isn't necessarily available) */ … … 1215 1231 } 1216 1232 #endif /* !VBOX_WITH_HARDENING */ 1233 1234 #ifdef VBOX_WITH_XPCOM 1235 NS_DECL_CLASSINFO(NullFB) 1236 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(NullFB, IFramebuffer) 1237 #endif
Note:
See TracChangeset
for help on using the changeset viewer.