Changeset 26429 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Feb 11, 2010 2:04:38 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57557
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r26322 r26429 4239 4239 strcpy(szPrevTitle, szTitle); 4240 4240 4241 4242 strcpy(szTitle, VBOX_PRODUCT " - ");4243 4244 4241 Bstr name; 4245 4242 gMachine->COMGETTER(Name)(name.asOutParam()); 4246 if (name) 4247 strcat(szTitle, Utf8Str(name).raw()); 4248 else 4249 strcat(szTitle, "<noname>"); 4250 4243 4244 RTStrPrintf(szTitle, sizeof(szTitle), "%s - " VBOX_PRODUCT, 4245 name ? Utf8Str(name).raw() : "<noname>"); 4251 4246 4252 4247 /* which mode are we in? */ … … 4258 4253 gMachine->COMGETTER(State)(&machineState); 4259 4254 if (machineState == MachineState_Paused) 4260 strcat(szTitle, " - [Paused]");4255 RTStrPrintf(szTitle + strlen(szTitle), sizeof(szTitle) - strlen(szTitle), " - [Paused]"); 4261 4256 4262 4257 if (gfGrabbed) 4263 strcat(szTitle, " - [Input captured]"); 4264 4258 RTStrPrintf(szTitle + strlen(szTitle), sizeof(szTitle) - strlen(szTitle), " - [Input captured]"); 4259 4260 #if defined(DEBUG) || defined(VBOX_WITH_STATISTICS) 4265 4261 // do we have a debugger interface 4266 4262 if (gMachineDebugger) 4267 4263 { 4268 #if defined(DEBUG) || defined(VBOX_WITH_STATISTICS)4269 4264 // query the machine state 4270 4265 BOOL recompileSupervisor = FALSE; … … 4294 4289 else 4295 4290 RTStrPrintf(psz, &szTitle[sizeof(szTitle)] - psz, "]"); 4296 #else 4297 BOOL hwVirtEnabled = FALSE; 4298 gMachineDebugger->COMGETTER(HWVirtExEnabled)(&hwVirtEnabled); 4299 RTStrPrintf(szTitle + strlen(szTitle), sizeof(szTitle) - strlen(szTitle), 4300 "%s", hwVirtEnabled ? " (HWVirtEx)" : ""); 4301 #endif /* DEBUG */ 4302 } 4291 } 4292 #endif /* DEBUG || VBOX_WITH_STATISTICS */ 4303 4293 break; 4304 4294 } … … 4312 4302 gMachine->COMGETTER(State)(&machineState); 4313 4303 if (machineState == MachineState_Starting) 4314 strcat(szTitle, " - Starting..."); 4304 RTStrPrintf(szTitle + strlen(szTitle), sizeof(szTitle) - strlen(szTitle), 4305 " - Starting..."); 4315 4306 else if (machineState == MachineState_Restoring) 4316 4307 {
Note:
See TracChangeset
for help on using the changeset viewer.