Signed-off-by: Rami Ylimäki <rami.ylim...@vincit.fi> --- x11perf.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/x11perf.c b/x11perf.c index 39ab493..29ca1ec 100644 --- a/x11perf.c +++ b/x11perf.c @@ -497,6 +497,8 @@ usage(void) " -rop <rop0 rop1 ...> use the given rops to draw (default = GXcopy)", " -pm <pm0 pm1 ...> use the given planemasks to draw (default = ~0)", " -depth <depth> use a visual with <depth> planes per pixel", +" -width <width> override the default width of test window", +" -height <height> override the default height of test window", " -vclass <class> the visual class to use (default = root)", " -reps <n> fix the rep count (default = auto scale)", " -subs <s0 s1 ...> a list of the number of sub-windows to use", @@ -1055,6 +1057,20 @@ main(int argc, char *argv[]) depth = atoi(argv[i]); if (depth <= 0) usage (); + } else if (strcmp(argv[i], "-width") == 0) { + i++; + if (argc <= i) + usage (); + windowWidth = atoi(argv[i]); + if (windowWidth <= 0) + usage (); + } else if (strcmp(argv[i], "-height") == 0) { + i++; + if (argc <= i) + usage (); + windowHeight = atoi(argv[i]); + if (windowHeight <= 0) + usage (); } else if (strcmp(argv[i], "-vclass") == 0) { i++; if (argc <= i) @@ -1326,7 +1342,8 @@ main(int argc, char *argv[]) /* Figure out how long to call HardwareSync, so we can adjust for that in our total elapsed time */ (void) CalibrateTest(&xparms, &syncTest, 1, &syncTime); - printf("Sync time adjustment is %6.4f msecs.\n\n", syncTime/1000); + printf("Sync time adjustment is %6.4f msecs.\n", syncTime/1000); + printf("Window size is %dx%d.\n\n", windowWidth, windowHeight); ForEachTest (i) { int child; -- 1.6.3.3 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel