aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-20 10:06:50 +1100
committerStrangerke2012-04-06 08:20:03 +0200
commit64c0600c3c78c2c4b6d7855386bf4e000478cd5d (patch)
tree9d15c65655f9e07221efb2eaa68eb82e373bdd31 /engines/mortevielle/graphics.cpp
parent1244e3c7ad1eccdbf8ac5e3bfb46f4fa98d0be4b (diff)
downloadscummvm-rg350-64c0600c3c78c2c4b6d7855386bf4e000478cd5d.tar.gz
scummvm-rg350-64c0600c3c78c2c4b6d7855386bf4e000478cd5d.tar.bz2
scummvm-rg350-64c0600c3c78c2c4b6d7855386bf4e000478cd5d.zip
MORTEVIELLE: Add ScreenSurface::clearScreen method
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r--engines/mortevielle/graphics.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp
index 89fd123617..0bc3b77804 100644
--- a/engines/mortevielle/graphics.cpp
+++ b/engines/mortevielle/graphics.cpp
@@ -998,6 +998,14 @@ void ScreenSurface::fillBox(int colour, const Common::Rect &bounds, int patt) {
}
/**
+ * Clears the screen
+ */
+void ScreenSurface::clearScreen() {
+ Graphics::Surface destSurface = lockArea(Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT));
+ destSurface.fillRect(Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), 0);
+}
+
+/**
* Sets a single pixel at the specified co-ordinates
* @remarks Because the ScummVM surface is using a double height 640x400 surface to
* simulate the original 640x400 surface, all Y values have to be doubled