From: <ai...@us...> - 2013-01-30 08:25:56
|
Revision: 12290 http://plplot.svn.sourceforge.net/plplot/?rev=12290&view=rev Author: airwin Date: 2013-01-30 08:25:49 +0000 (Wed, 30 Jan 2013) Log Message: ----------- Implement plwid in pldeprecated.c. This gives backwards compatibility (at least for one release cycle) for plwid calls from users, but only if they specify -DPL_DEPRECATED=ON. Modified Paths: -------------- trunk/include/plplot.h trunk/src/pldeprecated.c Modified: trunk/include/plplot.h =================================================================== --- trunk/include/plplot.h 2013-01-30 08:05:39 UTC (rev 12289) +++ trunk/include/plplot.h 2013-01-30 08:25:49 UTC (rev 12290) @@ -1974,6 +1974,11 @@ PLFLT xmax0, PLFLT ymin0, PLFLT ymax0, PLFLT zmin0, PLFLT zmax0, PLFLT alt, PLFLT az ); +// Set pen width with deprecated integer width + +PLDLLIMPEXP void +c_plwid( PLINT width ); + // Set pen width. PLDLLIMPEXP void Modified: trunk/src/pldeprecated.c =================================================================== --- trunk/src/pldeprecated.c 2013-01-30 08:05:39 UTC (rev 12289) +++ trunk/src/pldeprecated.c 2013-01-30 08:25:49 UTC (rev 12290) @@ -121,5 +121,18 @@ plrgb( r, g, b ); } +//-------------------------------------------------------------------------- +// void plwid() +// +// Set pen width using a deprecated integer width value rather than +// the recommended plwidth call with floating-point width value. +//-------------------------------------------------------------------------- +void +c_plwid( PLINT width ) +{ + plwarn( "plwid: function deprecated. Use plwidth instead" ); + plwidth( (PLFLT) width ); +} + #endif // PL_DEPRECATED This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |