Revision: 55998
http://sourceforge.net/p/brlcad/code/55998
Author: carlmoore
Date: 2013-07-10 21:43:36 +0000 (Wed, 10 Jul 2013)
Log Message:
-----------
add run-with-no-arguments, h, ? ; remove old h in favor of s 1024; change 2
defaults from 0 to 1024
Modified Paths:
--------------
brlcad/trunk/src/fb/fbzoom.c
Modified: brlcad/trunk/src/fb/fbzoom.c
===================================================================
--- brlcad/trunk/src/fb/fbzoom.c 2013-07-10 14:48:07 UTC (rev 55997)
+++ brlcad/trunk/src/fb/fbzoom.c 2013-07-10 21:43:36 UTC (rev 55998)
@@ -55,14 +55,14 @@
static int new_xPan, new_yPan;
static int new_xZoom, new_yZoom;
-static int scr_width = 0; /* screen size */
-static int scr_height = 0;
+static int scr_width = 512; /* screen size */
+static int scr_height = 512;
static int toggle_pan = 0; /* Reverse sense of pan commands? */
static char *framebuffer = NULL;
static FBIO *fbp;
static char usage[] = "\
-Usage: fbzoom [-hT] [-F framebuffer]\n\
+Usage: fbzoom [-T] [-F framebuffer]\n\
[-{sS} squarescrsize] [-{wW} scr_width] [-{nN} scr_height]\n";
int
@@ -296,12 +296,8 @@
{
int c;
- while ((c = bu_getopt(argc, argv, "hTF:s:S:w:W:n:N:")) != -1) {
+ while ((c = bu_getopt(argc, argv, "TF:s:S:w:W:n:N:h?")) != -1) {
switch (c) {
- case 'h':
- /* high-res */
- scr_height = scr_width = 1024;
- break;
case 'T':
/* reverse the sense of pan commands */
toggle_pan = 1;
@@ -326,6 +322,10 @@
return 0;
}
}
+
+ if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
+ return 0;
+
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits