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,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue