GRAPHICS: Fix ManagedSurface clear calls when no surface is set
This commit is contained in:
parent
3a933138ce
commit
4fbf11db90
1 changed files with 2 additions and 1 deletions
|
@ -335,6 +335,7 @@ void ManagedSurface::addDirtyRect(const Common::Rect &r) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ManagedSurface::clear(uint color) {
|
void ManagedSurface::clear(uint color) {
|
||||||
|
if (!empty())
|
||||||
fillRect(getBounds(), color);
|
fillRect(getBounds(), color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue