summaryrefslogtreecommitdiff
path: root/vmwarectrl
diff options
context:
space:
mode:
authorMicah Dowty <micah@vmware.com>2009-05-12 16:45:29 -0700
committerPhilip Langdale <philipl@fido2.homeip.net>2009-05-12 16:45:29 -0700
commitdccc9376a4fb1cba9c35b7617989608497fca7be (patch)
tree3412ef0d944b29e770dbc0308476029149e6847c /vmwarectrl
parentb7dbdd28764a8f3883833ab818a7b7314632b0b2 (diff)
Unbreak vmwarectrl setres
The vmwarectrl tool's "setres" command was unusable, because it looks like someone added the settopology test without updating the argument indices for setres. This patch makes setres usable again.
Diffstat (limited to 'vmwarectrl')
-rw-r--r--vmwarectrl/vmwarectrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vmwarectrl/vmwarectrl.c b/vmwarectrl/vmwarectrl.c
index 6c45095..38ded50 100644
--- a/vmwarectrl/vmwarectrl.c
+++ b/vmwarectrl/vmwarectrl.c
@@ -30,7 +30,7 @@ main (int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (argc == 2) {
+ if (argc >= 2) {
if (strcmp(argv[1], "setres") == 0) {
int x, y;
if (argc < 4) {
@@ -38,8 +38,8 @@ main (int argc, char **argv)
exit(EXIT_FAILURE);
}
- x = atoi(argv[1]);
- y = atoi(argv[2]);
+ x = atoi(argv[2]);
+ y = atoi(argv[3]);
if (VMwareCtrl_SetRes(dpy, screen, x, y)) {
printf("Set Res was successful\n");