aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:38:33 +0200
committerJohannes Schickel2013-08-03 04:02:50 +0200
commitf8ffe816d600a83cacc0063f0ef69d18325f1cdf (patch)
tree878690806c7913c008765b4a20958f415ca4b71d /engines/draci/screen.cpp
parent3fbc497e1c7fddc543aabf5886ccf364a3416efc (diff)
downloadscummvm-rg350-f8ffe816d600a83cacc0063f0ef69d18325f1cdf.tar.gz
scummvm-rg350-f8ffe816d600a83cacc0063f0ef69d18325f1cdf.tar.bz2
scummvm-rg350-f8ffe816d600a83cacc0063f0ef69d18325f1cdf.zip
DRACI: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/draci/screen.cpp')
-rw-r--r--engines/draci/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp
index 8c1a0c40f7..e43e367300 100644
--- a/engines/draci/screen.cpp
+++ b/engines/draci/screen.cpp
@@ -110,7 +110,7 @@ void Screen::copyToScreen() {
// If a full update is needed, update the whole screen
if (_surface->needsFullUpdate()) {
- byte *ptr = (byte *)_surface->getBasePtr(0, 0);
+ byte *ptr = (byte *)_surface->getPixels();
_vm->_system->copyRectToScreen(ptr, kScreenWidth,
0, 0, kScreenWidth, kScreenHeight);
@@ -138,7 +138,7 @@ void Screen::copyToScreen() {
* Clears the screen and marks the whole screen dirty.
*/
void Screen::clearScreen() {
- byte *ptr = (byte *)_surface->getBasePtr(0, 0);
+ byte *ptr = (byte *)_surface->getPixels();
_surface->markDirty();