Revision: 41284
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41284&view=rev
Author:   bob1961
Date:     2010-11-08 19:14:26 +0000 (Mon, 08 Nov 2010)

Log Message:
-----------
rt_cmdtab does not have a background command so set the background locally 
(i.e. don't call rt_do_cmd()).

Modified Paths:
--------------
    brlcad/trunk/src/rt/opt.c

Modified: brlcad/trunk/src/rt/opt.c
===================================================================
--- brlcad/trunk/src/rt/opt.c   2010-11-08 18:00:45 UTC (rev 41283)
+++ brlcad/trunk/src/rt/opt.c   2010-11-08 19:14:26 UTC (rev 41284)
@@ -276,7 +276,6 @@
                if ( g < 0 || g > 255 )  g = 255;
                if ( b < 0 || b > 255 )  b = 255;
 
-#if defined(_WIN32)
                if (r == 0)
                    background[0] = 0.0;
                else
@@ -289,12 +288,8 @@
                    background[2] = 0.0;
                else
                    background[2] = b / 255.0;
-#else
-               sprintf(buf, "set background=%f/%f/%f",
-                       r/255., g/255., b/255. );
-               (void)rt_do_cmd( (struct rt_i *)0, buf,
-                                rt_cmdtab );
-#endif
+
+               default_background = 0;
            }
            break;
            case 'T':
@@ -381,8 +376,13 @@
                    height = i;
                break;
            case 'W':
+               background[0] = 1.0;
+               background[1] = 1.0;
+               background[2] = 1.0;
+               default_background = 0;
+#if 0
                (void)rt_do_cmd( (struct rt_i *)0, "set 
background=1.0/1.0/1.0", rt_cmdtab );
-               default_background = 0;
+#endif
                break;
            case 'w':
                i = atoi( bu_optarg );


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

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to