[Scummvm-git-logs] scummvm branch-2-0 -> bed6644210dbff63e9c33f0cc5a4ba76e96cd975

dreammaster dreammaster at scummvm.org
Sun Dec 3 19:18:53 CET 2017


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:
bed6644210 GRAPHICS: Fix ManagedSurface clear calls when no surface is set


Commit: bed6644210dbff63e9c33f0cc5a4ba76e96cd975
    https://github.com/scummvm/scummvm/commit/bed6644210dbff63e9c33f0cc5a4ba76e96cd975
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-12-03T13:13:29-05:00

Commit Message:
GRAPHICS: Fix ManagedSurface clear calls when no surface is set

Changed paths:
    graphics/managed_surface.cpp


diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index 60b2941..1595a32 100644
--- a/graphics/managed_surface.cpp
+++ b/graphics/managed_surface.cpp
@@ -335,7 +335,8 @@ void ManagedSurface::addDirtyRect(const Common::Rect &r) {
 }
 
 void ManagedSurface::clear(uint color) {
-	fillRect(getBounds(), color);
+	if (!empty())
+		fillRect(getBounds(), color);
 }
 
 } // End of namespace Graphics





More information about the Scummvm-git-logs mailing list