Changeset 22145 in vbox
- Timestamp:
- Aug 10, 2009 8:02:17 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r20521 r22145 53 53 VBoxManage_DEFS += VBOX_WITH_NETFLT 54 54 endif 55 ifdef VBOX_WITH_VIDEOHWACCEL 56 VBoxManage_DEFS += VBOX_WITH_VIDEOHWACCEL 57 endif 55 58 VBoxManage_SOURCES = \ 56 59 VBoxManage.cpp \ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r21729 r22145 137 137 " [--monitorcount <number>]\n" 138 138 " [--accelerate3d <on|off>]\n" 139 #ifdef VBOX_WITH_VIDEOHWACCEL 140 " [--accelerate2dvideo <on|off>]\n" 141 #endif 139 142 " [--bioslogofadein on|off]\n" 140 143 " [--bioslogofadeout on|off]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r21446 r22145 429 429 else 430 430 RTPrintf("3D Acceleration: %s\n", accelerate3d ? "on" : "off"); 431 432 #ifdef VBOX_WITH_VIDEOHWACCEL 433 BOOL accelerate2dVideo; 434 machine->COMGETTER(Accelerate2DVideoEnabled)(&accelerate2dVideo); 435 if (details == VMINFO_MACHINEREADABLE) 436 RTPrintf("accelerate2dvideo=\"%s\"\n", accelerate2dVideo ? "on" : "off"); 437 else 438 RTPrintf("2D Video Acceleration: %s\n", accelerate2dVideo ? "on" : "off"); 439 #endif 431 440 432 441 ComPtr<IFloppyDrive> floppyDrive; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r21446 r22145 70 70 uint32_t monitorcount = ~0; 71 71 char *accelerate3d = NULL; 72 #ifdef VBOX_WITH_VIDEOHWACCEL 73 char *accelerate2dvideo = NULL; 74 #endif 72 75 char *bioslogofadein = NULL; 73 76 char *bioslogofadeout = NULL; … … 247 250 accelerate3d = a->argv[i]; 248 251 } 252 #ifdef VBOX_WITH_VIDEOHWACCEL 253 else if ( !strcmp(a->argv[i], "--accelerate2dvideo") 254 || !strcmp(a->argv[i], "-accelerate2dvideo")) 255 { 256 if (a->argc <= i + 1) 257 return errorArgument("Missing argument to '%s'", a->argv[i]); 258 i++; 259 accelerate2dvideo = a->argv[i]; 260 } 261 #endif 249 262 else if ( !strcmp(a->argv[i], "--bioslogofadein") 250 263 || !strcmp(a->argv[i], "-bioslogofadein")) … … 1022 1035 else 1023 1036 { 1024 errorArgument("Invalid --accelerate3d argument '%s'", ioapic);1037 errorArgument("Invalid --accelerate3d argument '%s'", accelerate3d); 1025 1038 rc = E_FAIL; 1026 1039 break; 1027 1040 } 1028 1041 } 1042 #ifdef VBOX_WITH_VIDEOHWACCEL 1043 if (accelerate2dvideo) 1044 { 1045 if (!strcmp(accelerate2dvideo, "on")) 1046 { 1047 CHECK_ERROR(machine, COMSETTER(Accelerate2DVideoEnabled)(true)); 1048 } 1049 else if (!strcmp(accelerate2dvideo, "off")) 1050 { 1051 CHECK_ERROR(machine, COMSETTER(Accelerate2DVideoEnabled)(false)); 1052 } 1053 else 1054 { 1055 errorArgument("Invalid --accelerate2dvideo argument '%s'", accelerate2dvideo); 1056 rc = E_FAIL; 1057 break; 1058 } 1059 } 1060 #endif 1029 1061 if (bioslogofadein) 1030 1062 {
Note:
See TracChangeset
for help on using the changeset viewer.