GRAPHICS: Fix ManagedSurface clear calls when no surface is set

This commit is contained in:
Paul Gilbert 2017-12-03 13:10:41 -05:00
parent 3a933138ce
commit 4fbf11db90

View file

@ -335,7 +335,8 @@ void ManagedSurface::addDirtyRect(const Common::Rect &r) {
} }
void ManagedSurface::clear(uint color) { void ManagedSurface::clear(uint color) {
fillRect(getBounds(), color); if (!empty())
fillRect(getBounds(), color);
} }
} // End of namespace Graphics } // End of namespace Graphics