[Scummvm-cvs-logs] SF.net SVN: scummvm: [28640] tools/branches/gsoc2007-toolsgui/tools_gui.cpp

lightcast at users.sourceforge.net lightcast at users.sourceforge.net
Fri Aug 17 02:54:50 CEST 2007


Revision: 28640
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28640&view=rev
Author:   lightcast
Date:     2007-08-16 17:54:50 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
Remove the extra line feed at the end of each line of captured output when using Windows.

Modified Paths:
--------------
    tools/branches/gsoc2007-toolsgui/tools_gui.cpp

Modified: tools/branches/gsoc2007-toolsgui/tools_gui.cpp
===================================================================
--- tools/branches/gsoc2007-toolsgui/tools_gui.cpp	2007-08-16 19:47:22 UTC (rev 28639)
+++ tools/branches/gsoc2007-toolsgui/tools_gui.cpp	2007-08-17 00:54:50 UTC (rev 28640)
@@ -1012,7 +1012,13 @@
 			while (!command->GetInputStream()->Eof()) {
 				wxChar outputChar = command->GetInputStream()->GetC();
 				if (command->GetInputStream()->LastRead() != 0) {
+#ifdef __WXMSW__
+					if (outputChar != 10) {
+						this->_toolOutput->AppendText(outputChar);
+					}
+#else
 					this->_toolOutput->AppendText(outputChar);
+#endif
 				}
 			}
 


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




More information about the Scummvm-git-logs mailing list