Revision: 55938
          http://sourceforge.net/p/brlcad/code/55938
Author:   carlmoore
Date:     2013-07-02 18:36:12 +0000 (Tue, 02 Jul 2013)
Log Message:
-----------
implement run-with-no-arguments (h,? already work); initialize width,height as 
512, not as 0

Modified Paths:
--------------
    brlcad/trunk/doc/docbook/system/man1/en/fbpoint.xml
    brlcad/trunk/src/fb/fbpoint.c

Modified: brlcad/trunk/doc/docbook/system/man1/en/fbpoint.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/man1/en/fbpoint.xml 2013-07-02 18:20:17 UTC 
(rev 55937)
+++ brlcad/trunk/doc/docbook/system/man1/en/fbpoint.xml 2013-07-02 18:36:12 UTC 
(rev 55938)
@@ -16,7 +16,6 @@
 <refsynopsisdiv xml:id="synopsis">
 <cmdsynopsis sepchar=" ">
   <command>fbpoint</command>
-    <arg choice="opt" rep="norepeat">-h </arg>
     <arg choice="opt" rep="norepeat"><arg choice="plain" rep="norepeat">-x 
</arg><arg choice="opt" 
rep="norepeat"><replaceable>prefix</replaceable></arg></arg>
     <arg choice="opt" rep="norepeat"><arg choice="plain" rep="norepeat">-y 
</arg><arg choice="opt" 
rep="norepeat"><replaceable>prefix</replaceable></arg></arg>
     <arg choice="opt" rep="norepeat"><arg choice="plain" 
rep="norepeat"><replaceable>initx</replaceable></arg><arg choice="plain" 
rep="norepeat"><replaceable>inity</replaceable></arg></arg>
@@ -76,15 +75,6 @@
 ``<emphasis remap="B">Q</emphasis>'',
 exits the program.</para>
 
-<para>The
-<option>-h</option>
-flag causes the frame buffer to be
-used in high resolution mode (1024x1024).
-This is important for frame buffers such as the Adage which operate
-differently depending on the display size.  Without this flag
-the default size for the selected device will be used (usually
-the entire screen).</para>
-
 <para>Using this program with grave accents in a shell script in order to
 interactively grab a pair of coordinates is one of its main
 intentions.  This is the reason for the feedback on standard error and the

Modified: brlcad/trunk/src/fb/fbpoint.c
===================================================================
--- brlcad/trunk/src/fb/fbpoint.c       2013-07-02 18:20:17 UTC (rev 55937)
+++ brlcad/trunk/src/fb/fbpoint.c       2013-07-02 18:36:12 UTC (rev 55938)
@@ -143,7 +143,7 @@
     int width, height;
 
     setbuf(stderr, malloc(BUFSIZ));
-    width = height = 0;
+    width = height = 512;
     curX = curY = -1;
 
     while (argc > 1) {
@@ -162,6 +162,8 @@
        argc--;
        argv++;
     }
+    if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
+       bu_exit(1, "%s", usage);
     /*
      * Check for optional starting coordinate.
      * Test for bad flags while we're at it.

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