[Scummvm-git-logs] scummvm master -> 519902cf06d35cf047abeb8f56da0613f1003008

mgerhardy noreply at scummvm.org
Tue Nov 21 06:13:02 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
519902cf06 GUI: Fix Console newlines passed to `debug`


Commit: 519902cf06d35cf047abeb8f56da0613f1003008
    https://github.com/scummvm/scummvm/commit/519902cf06d35cf047abeb8f56da0613f1003008
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-11-21T07:12:58+01:00

Commit Message:
GUI: Fix Console newlines passed to `debug`

Fixes Console output in debug (stdout/scummvm.log) when lines
are built with multiple calls to ConsoleDialog::debugPrintf.

See: a7d4d0f232231eb3d22c85d35ddfbcc2be0e587c

Changed paths:
    gui/console.cpp


diff --git a/gui/console.cpp b/gui/console.cpp
index 7a41928f947..695021a2a59 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -780,8 +780,7 @@ int ConsoleDialog::vprintFormat(int dummy, const char *format, va_list argptr) {
 	const int size = buf.size();
 
 	print(buf.c_str());
-	buf.trim();
-	debug("%s", buf.c_str());
+	debugN("%s", buf.c_str());
 
 	return size;
 }




More information about the Scummvm-git-logs mailing list