[Scummvm-git-logs] scummvm master -> 4fbf11db90bec294038fd344936eb895cbe343e1

dreammaster dreammaster at scummvm.org
Sun Dec 3 19:10:59 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:
4fbf11db90 GRAPHICS: Fix ManagedSurface clear calls when no surface is set


Commit: 4fbf11db90bec294038fd344936eb895cbe343e1
    https://github.com/scummvm/scummvm/commit/4fbf11db90bec294038fd344936eb895cbe343e1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-12-03T13:10:41-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