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,6 +335,7 @@ void ManagedSurface::addDirtyRect(const Common::Rect &r) {
}
void ManagedSurface::clear(uint color) {
if (!empty())
fillRect(getBounds(), color);
}