Permalink
Browse files

GRAPHICS: Fix ManagedSurface clear calls when no surface is set

  • Loading branch information...
dreammaster committed Dec 3, 2017
1 parent 3a93313 commit 4fbf11db90bec294038fd344936eb895cbe343e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 4fbf11d

Please sign in to comment.