Revision: 55865
          http://sourceforge.net/p/brlcad/code/55865
Author:   carlmoore
Date:     2013-06-26 19:07:29 +0000 (Wed, 26 Jun 2013)
Log Message:
-----------
implement h and ? help (run-with-no-arguments already works); old h gives way 
to 's 1024'; 2 variables are initialized so we don't depend on the system (they 
are given new values by program options)

Modified Paths:
--------------
    brlcad/trunk/src/fb/fblabel.c

Modified: brlcad/trunk/src/fb/fblabel.c
===================================================================
--- brlcad/trunk/src/fb/fblabel.c       2013-06-26 18:42:01 UTC (rev 55864)
+++ brlcad/trunk/src/fb/fblabel.c       2013-06-26 19:07:29 UTC (rev 55865)
@@ -44,7 +44,7 @@
 FBIO *fbp;
 
 static char usage[] = "\
-Usage: fblabel [-h -c -a] [-F framebuffer] [-C r/g/b]\n\
+Usage: fblabel [-c -a] [-F framebuffer] [-C r/g/b]\n\
        [-S scr_squaresize] [-W scr_width] [-N scr_height]\n\
        [-f fontstring] xpos ypos textstring\n";
 
@@ -63,10 +63,9 @@
 static int xpos;
 static int ypos;
 static char *textstring;
-static int debug;
-static int alias_off;
+static int debug = 0;
+static int alias_off = 0;
 
-
 /*
  * squash - Filter super-sampled image for one scan line
  */
@@ -290,7 +289,7 @@
     pixcolor[GRN]  = 255;
     pixcolor[BLU]  = 255;
 
-    while ((c = bu_getopt(argc, argv, "adhcF:f:r:g:b:C:s:S:w:W:n:N:")) != -1) {
+    while ((c = bu_getopt(argc, argv, "adcF:f:r:g:b:C:s:S:w:W:n:N:h?")) != -1) 
{
        switch (c) {
            case 'a':
                alias_off = 1;
@@ -298,10 +297,6 @@
            case 'd':
                debug = 1;
                break;
-           case 'h':
-               /* high-res */
-               scr_height = scr_width = 1024;
-               break;
            case 's':
            case 'S':
                /* square size */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to