aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-15 20:44:12 -0400
committerPaul Gilbert2015-05-15 20:44:12 -0400
commit95ce29ac7470435dbec167df526cf4ff38fc8805 (patch)
treee93adbd670b9a0cd86b7ee5e1ac77c0fd907b891 /engines/sherlock/surface.cpp
parent62ce7a9c839f82121c14ce8357d107bc1ba70244 (diff)
downloadscummvm-rg350-95ce29ac7470435dbec167df526cf4ff38fc8805.tar.gz
scummvm-rg350-95ce29ac7470435dbec167df526cf4ff38fc8805.tar.bz2
scummvm-rg350-95ce29ac7470435dbec167df526cf4ff38fc8805.zip
SHERLOCK: Fix random pixel transitions, and make it the default fade style
Diffstat (limited to 'engines/sherlock/surface.cpp')
-rw-r--r--engines/sherlock/surface.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp
index 2dfbdef77f..36e625794c 100644
--- a/engines/sherlock/surface.cpp
+++ b/engines/sherlock/surface.cpp
@@ -172,4 +172,11 @@ bool Surface::clip(Common::Rect &srcBounds, Common::Rect &destBounds) {
return true;
}
+/**
+ * Clear the screen
+ */
+void Surface::clear() {
+ fillRect(Common::Rect(0, 0, this->w, this->h), 0);
+}
+
} // End of namespace Sherlock