[Scummvm-git-logs] scummvm master -> 398476a0f77a285cdd5a9241ff28a57fdefb0da7

sev- noreply at scummvm.org
Fri Apr 7 00:30:12 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:
398476a0f7 DIRECTOR: Fix compilation when libpng is absent


Commit: 398476a0f77a285cdd5a9241ff28a57fdefb0da7
    https://github.com/scummvm/scummvm/commit/398476a0f77a285cdd5a9241ff28a57fdefb0da7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-04-07T02:29:49+02:00

Commit Message:
DIRECTOR: Fix compilation when libpng is absent

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 6c611d364d7..a4184116813 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -1081,7 +1081,7 @@ void Score::screenShot() {
 		warning("Screenshot requested, but PNG support is not compiled in");
 
 		return;
-#endif
+#else
 
 
 	Graphics::Surface rawSurface = _window->getSurface()->rawSurface();
@@ -1148,6 +1148,8 @@ void Score::screenShot() {
 
 	newSurface->free();
 	delete newSurface;
+
+#endif // USE_PNG
 }
 
 uint16 Score::getSpriteIDFromPos(Common::Point pos) {




More information about the Scummvm-git-logs mailing list