From 64c0600c3c78c2c4b6d7855386bf4e000478cd5d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 20 Jan 2012 10:06:50 +1100 Subject: MORTEVIELLE: Add ScreenSurface::clearScreen method --- engines/mortevielle/graphics.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/mortevielle/graphics.cpp') 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 @@ -997,6 +997,14 @@ void ScreenSurface::fillBox(int colour, const Common::Rect &bounds, int patt) { warning("TODO: Figure out operation of ScreenSurface::box when pattern is %xh", 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 -- cgit v1.2.3