[brlcad-commits] SF.net SVN: brlcad:[58340] brlcad/trunk/src/libdm/scale.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <bo...@us...> - 2013-10-29 15:33:58
|
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. |