aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/managed_surface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index 60b2941efa..1595a32ecb 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