Revision: 58340
          http://sourceforge.net/p/brlcad/code/58340
Author:   bob1961
Date:     2013-10-29 15:33:55 +0000 (Tue, 29 Oct 2013)
Log Message:
-----------
Insure that the scale line is drawn using solid lines.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/scale.c

Modified: brlcad/trunk/src/libdm/scale.c
===================================================================
--- brlcad/trunk/src/libdm/scale.c      2013-10-29 15:28:28 UTC (rev 58339)
+++ brlcad/trunk/src/libdm/scale.c      2013-10-29 15:33:55 UTC (rev 58340)
@@ -47,7 +47,13 @@
     fastf_t xpos1, xpos2;
     fastf_t ypos1, ypos2;
     struct bu_vls vls = BU_VLS_INIT_ZERO;
+    /* Save the line attributes */
+    int saveLineWidth = dmp->dm_lineWidth;
+    int saveLineStyle = dmp->dm_lineStyle;
 
+    /* Draw solid lines */
+    DM_SET_LINE_ATTR(dmp, dmp->dm_lineWidth, 0);  /* solid lines */
+
     bu_vls_printf(&vls, "%g", viewSize*0.5);
     soffset = (int)(strlen(bu_vls_addr(&vls)) * 0.5);
 
@@ -74,6 +80,9 @@
                      ypos1 + 0.02, 1, 0);
 
     bu_vls_free(&vls);
+
+    /* Restore the line attributes */
+    DM_SET_LINE_ATTR(dmp, saveLineWidth, saveLineStyle);
 }
 
 

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


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to