[Scummvm-git-logs] scummvm master -> df1341ae6ad1f54bf892269118270f6b0c88a50a

sev- sev at scummvm.org
Mon Aug 16 12:19:21 UTC 2021


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:
df1341ae6a BACKENDS: Display OSD message on saved screenshots


Commit: df1341ae6ad1f54bf892269118270f6b0c88a50a
    https://github.com/scummvm/scummvm/commit/df1341ae6ad1f54bf892269118270f6b0c88a50a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-08-16T14:19:07+02:00

Commit Message:
BACKENDS: Display OSD message on saved screenshots

Changed paths:
    backends/graphics/sdl/sdl-graphics.cpp


diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index b7c680b116..a21cd6f708 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -363,11 +363,19 @@ void SdlGraphicsManager::saveScreenshot() {
 			debug("Saved screenshot '%s' in current directory", filename.c_str());
 		else
 			debug("Saved screenshot '%s' in directory '%s'", filename.c_str(), screenshotsPath.c_str());
+
+#ifdef USE_OSD
+		displayMessageOnOSD(Common::U32String::format(_("Saved screenshot '%s'"), filename.c_str()));
+#endif
 	} else {
 		if (screenshotsPath.empty())
 			warning("Could not save screenshot in current directory");
 		else
 			warning("Could not save screenshot in directory '%s'", screenshotsPath.c_str());
+
+#ifdef USE_OSD
+		displayMessageOnOSD(_("Could not save screenshot"));
+#endif
 	}
 }
 




More information about the Scummvm-git-logs mailing list