From: <doc...@us...> - 2008-03-31 20:42:57
|
Revision: 220 http://openpcl.svn.sourceforge.net/openpcl/?rev=220&view=rev Author: documentsystems Date: 2008-03-31 13:42:51 -0700 (Mon, 31 Mar 2008) Log Message: ----------- Change numeric argument to processMiscKCommand to by type float rather than int. This allows for more precision. Modified Paths: -------------- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java Modified: openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java =================================================================== --- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2008-03-31 20:39:54 UTC (rev 219) +++ openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2008-03-31 20:42:51 UTC (rev 220) @@ -301,7 +301,7 @@ } else if (cmdLeadin.equals(PCL_EXECUTE)) { processExecuteCommand(cmdTerminator, pBufferPos, cmdValueInt); } else if (cmdLeadin.equals(PCL_MISC_K)) { - processMiscKCommand(cmdTerminator, cmdValueInt); + processMiscKCommand(cmdTerminator, cmdValueFloat); } else if (cmdLeadin.equals(PCL_UNIT)) { processUnitCommand(cmdTerminator, cmdValueInt); } else if (cmdLeadin.equals(PCL_SECONDARY_FONT)) { @@ -455,12 +455,12 @@ * @param cmdTerminator * @param cmdValueInt */ -private void processMiscKCommand(char cmdTerminator, int cmdValueInt) { +private void processMiscKCommand(char cmdTerminator, float cmdValue) { switch(cmdTerminator){ case 'H': if (mIsStateBuildingPclPages || mIsRecordingAMacro) { return; } mPriDrawText.drawBufferedUpCharsAs1String(); - mPriFonts.setHorizontalMotionIndexHMI(cmdValueInt); + mPriFonts.setHorizontalMotionIndexHMI(cmdValue); break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |