Permalink
Browse files

GRAPHICS: Fix ManagedSurface clear calls when no surface is set

  • Loading branch information...
dreammaster committed Dec 3, 2017
1 parent 4fcf187 commit bed6644210dbff63e9c33f0cc5a4ba76e96cd975
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 bed6644

Please sign in to comment.