aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/screen.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-07-13 19:08:04 +0000
committerDenis Kasak2009-07-13 19:08:04 +0000
commit224d8c087acac4e3f21913b6268f82c1ab9faca8 (patch)
tree76587b42ddf830fa889e396df9c7aac52ddcb9db /engines/draci/screen.cpp
parent77a810c0c9beed930a4b0ffe8e715bd22d7be448 (diff)
downloadscummvm-rg350-224d8c087acac4e3f21913b6268f82c1ab9faca8.tar.gz
scummvm-rg350-224d8c087acac4e3f21913b6268f82c1ab9faca8.tar.bz2
scummvm-rg350-224d8c087acac4e3f21913b6268f82c1ab9faca8.zip
Added Surface::fill() method and made Screen::fillScreen() use that instead of filling the surface manually. Changed Surface to use uint instead of uint8 throughout.
svn-id: r42447
Diffstat (limited to 'engines/draci/screen.cpp')
-rw-r--r--engines/draci/screen.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp
index b6c740e20c..781147806f 100644
--- a/engines/draci/screen.cpp
+++ b/engines/draci/screen.cpp
@@ -134,11 +134,8 @@ void Screen::clearScreen() const {
* Fills the screen with the specified colour and marks the whole screen dirty.
*/
void Screen::fillScreen(uint8 colour) const {
- byte *ptr = (byte *)_surface->getBasePtr(0, 0);
-
+ _surface->fill(colour);
_surface->markDirty();
-
- memset(ptr, colour, kScreenWidth * kScreenHeight);
}
/**