Revision: 41286
http://brlcad.svn.sourceforge.net/brlcad/?rev=41286&view=rev
Author: bob1961
Date: 2010-11-08 22:14:06 +0000 (Mon, 08 Nov 2010)
Log Message:
-----------
Undo previous revision.
Modified Paths:
--------------
brlcad/trunk/src/rt/opt.c
Modified: brlcad/trunk/src/rt/opt.c
===================================================================
--- brlcad/trunk/src/rt/opt.c 2010-11-08 21:06:41 UTC (rev 41285)
+++ brlcad/trunk/src/rt/opt.c 2010-11-08 22:14:06 UTC (rev 41286)
@@ -258,9 +258,7 @@
break;
case 'C':
{
-#ifndef _WIN32
- char buf[128] = {0};
-#endif
+ char buf[128];
int r, g, b;
register char *cp = bu_optarg;
@@ -276,6 +274,7 @@
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
@@ -288,8 +287,12 @@
background[2] = 0.0;
else
background[2] = b / 255.0;
-
- default_background = 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
}
break;
case 'T':
@@ -376,13 +379,8 @@
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 );
-#endif
+ default_background = 0;
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