diff options
author | Martin Kiewitz | 2015-06-09 23:22:52 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-06-10 07:14:15 +0200 |
commit | 6aaee559dc7f26240678421043baa865608b7d58 (patch) | |
tree | b8ca18ff884e5a30c6083c88f60f6f0a515aadef /engines/sherlock/surface.cpp | |
parent | 866d7a27d8b0ea28a533f75774dd9ee16c288d38 (diff) | |
download | scummvm-rg350-6aaee559dc7f26240678421043baa865608b7d58.tar.gz scummvm-rg350-6aaee559dc7f26240678421043baa865608b7d58.tar.bz2 scummvm-rg350-6aaee559dc7f26240678421043baa865608b7d58.zip |
SHERLOCK: 3DO intro: implement fade from white
Diffstat (limited to 'engines/sherlock/surface.cpp')
-rw-r--r-- | engines/sherlock/surface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index 3bbaf4677e..0f6fa94c67 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -226,6 +226,10 @@ void Surface::fillRect(const Common::Rect &r, byte color) { addDirtyRect(r); } +void Surface::fill(uint16 color) { + _surface.fillRect(Common::Rect(_surface.w, _surface.h), color); +} + bool Surface::clip(Common::Rect &srcBounds, Common::Rect &destBounds) { if (destBounds.left >= _surface.w || destBounds.top >= _surface.h || destBounds.right <= 0 || destBounds.bottom <= 0) |