summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2004-03-27 16:56:43 +0000
committerKeith Packard <keithp@keithp.com>2004-03-27 16:56:43 +0000
commitc330c144ec3a3c1b5e8b4c04ffe49e09adb16664 (patch)
tree7b7d709d8ae2d950efeeef7245369d9146ccb55a
parent4973d642a036d382228a06fc6b78efbcf93d07f7 (diff)
35. TM fixes for VESA general timing formula mode line program
(hw/xfree86/etc/gtf). (Keith Packard)
-rw-r--r--hw/xfree86/utils/gtf/gtf.c19
-rw-r--r--hw/xfree86/utils/gtf/gtf.man.pre12
2 files changed, 16 insertions, 15 deletions
diff --git a/hw/xfree86/utils/gtf/gtf.c b/hw/xfree86/utils/gtf/gtf.c
index b922000bb..3535300fc 100644
--- a/hw/xfree86/utils/gtf/gtf.c
+++ b/hw/xfree86/utils/gtf/gtf.c
@@ -1,4 +1,4 @@
-/* $XdotOrg$ */
+/* $XdotOrg: xc/programs/Xserver/hw/xfree86/etc/gtf.c,v 1.1.10.1.4.1 2004/03/19 17:09:00 eich Exp $ */
/* gtf.c Generate mode timings using the GTF Timing Standard
*
* gcc gtf.c -o gtf -lm -Wall
@@ -146,7 +146,7 @@ typedef struct __mode
typedef struct __options
{
int x, y;
- int xf86mode, fbmode;
+ int xorgmode, fbmode;
float v_freq;
} options;
@@ -675,8 +675,9 @@ options *parse_command_line (int argc, char *argv[])
(strcmp (argv[n], "--fbmode") == 0)) {
o->fbmode = 1;
} else if ((strcmp (argv[n], "-x") == 0) ||
+ (strcmp (argv[n], "--xorgmode") == 0) ||
(strcmp (argv[n], "--xf86mode") == 0)) {
- o->xf86mode = 1;
+ o->xorgmode = 1;
} else {
goto bad_option;
}
@@ -684,10 +685,10 @@ options *parse_command_line (int argc, char *argv[])
n++;
}
- /* if neither xf86mode nor fbmode were requested, default to
- xf86mode */
+ /* if neither xorgmode nor fbmode were requested, default to
+ xorgmode */
- if (!o->fbmode && !o->xf86mode) o->xf86mode = 1;
+ if (!o->fbmode && !o->xorgmode) o->xorgmode = 1;
return (o);
@@ -695,7 +696,7 @@ options *parse_command_line (int argc, char *argv[])
fprintf (stderr, "\n");
fprintf (stderr, "usage: %s x y refresh [-v|--verbose] "
- "[-f|--fbmode] [-x|-xf86mode]\n", argv[0]);
+ "[-f|--fbmode] [-x|--xorgmode]\n", argv[0]);
fprintf (stderr, "\n");
@@ -709,7 +710,7 @@ options *parse_command_line (int argc, char *argv[])
"(traces each step of the computation)\n");
fprintf (stderr, " -f|--fbmode : output an fbset(8)-style mode "
"description\n");
- fprintf (stderr, " -x|-xf86mode : output an "__XSERVERNAME__"-style mode "
+ fprintf (stderr, " -x|--xorgmode : output an "__XSERVERNAME__"-style mode "
"description (this is the default\n"
" if no mode description is requested)\n");
@@ -733,7 +734,7 @@ int main (int argc, char *argv[])
m = vert_refresh (o->x, o->y, o->v_freq, 0, 0);
if (!m) exit (1);
- if (o->xf86mode)
+ if (o->xorgmode)
print_xf86_mode(m);
if (o->fbmode)
diff --git a/hw/xfree86/utils/gtf/gtf.man.pre b/hw/xfree86/utils/gtf/gtf.man.pre
index ba4e87b82..6b602f348 100644
--- a/hw/xfree86/utils/gtf/gtf.man.pre
+++ b/hw/xfree86/utils/gtf/gtf.man.pre
@@ -1,5 +1,5 @@
.\" $XFree86$
-.\" $XdotOrg$
+.\" $XdotOrg: xc/programs/Xserver/hw/xfree86/etc/gtf.man,v 1.1.10.1.4.1 2004/03/19 17:09:00 eich Exp $
.TH GTF 1 __vendorversion__
.SH NAME
gtf - calculate VESA GTF mode lines
@@ -10,14 +10,14 @@ gtf - calculate VESA GTF mode lines
.I refresh
.RB [ \-v | \-\-verbose ]
.RB [ \-f | \-\-fbmode ]
-.RB [ \-x | \-\-xf86mode ]
+.RB [ \-x | \-\-xorgmode ]
.SH DESCRIPTION
.I Gtf
is a utility for calculating VESA GTF modes. Given the desired
horizontal and vertical resolutions and refresh rate (in Hz), the parameters
for a matching VESA GTF mode are printed out. Two output formats are
-supported: mode lines suitable for the __XSERVERNAME__
-.B __XCONFIGFILE__(__filemansuffix__)
+supported: mode lines suitable for the __xservername__
+.B __xconfigfile__(__filemansuffix__)
file, and mode parameters suitable for the Linux
.B fbset(8)
utility.
@@ -29,14 +29,14 @@ Enable verbose printouts This shows a trace for each step of the
computation.
.TP 8
.BR \-x | \-\-xf86mode
-Print the mode parameters as __XSERVERNAME__-style mode lines. This is the
+Print the mode parameters as __xservername__-style mode lines. This is the
default format.
.TP 8
.BR \-f | \-\-fbset
Print the mode parameters in a format suitable for
.BR fbset(8) .
.SH "SEE ALSO"
-__XCONFIGFILE__(__filemansuffix__)
+__xconfigfile__(__filemansuffix__)
.SH AUTHOR
Andy Ritger.
.PP