aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 02:34:23 +0200
committerJohannes Schickel2012-06-16 02:38:59 +0200
commit79dfc7be97c89fcc97332d2e05e22b683e05a7cb (patch)
tree9615d7ebe783701f0549ecf3fd09df3334a9d356 /engines/made/screen.cpp
parent2e97e043fb8610d1d85bbd3e5e2d7ad4990ef8a0 (diff)
downloadscummvm-rg350-79dfc7be97c89fcc97332d2e05e22b683e05a7cb.tar.gz
scummvm-rg350-79dfc7be97c89fcc97332d2e05e22b683e05a7cb.tar.bz2
scummvm-rg350-79dfc7be97c89fcc97332d2e05e22b683e05a7cb.zip
MADE: Get rid of casts on OSystem::copyRectToScreen calls.
Diffstat (limited to 'engines/made/screen.cpp')
-rw-r--r--engines/made/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index b49bfff840..ea7d57f82d 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -349,7 +349,7 @@ void Screen::updateSprites() {
drawSpriteChannels(_backgroundScreenDrawCtx, 3, 0);
drawSpriteChannels(_workScreenDrawCtx, 1, 2);
- _vm->_system->copyRectToScreen((const byte*)_workScreen->pixels, _workScreen->pitch, 0, 0, _workScreen->w, _workScreen->h);
+ _vm->_system->copyRectToScreen(_workScreen->pixels, _workScreen->pitch, 0, 0, _workScreen->w, _workScreen->h);
_vm->_screen->updateScreenAndWait(10);
}
@@ -775,10 +775,10 @@ void Screen::unlockScreen() {
}
void Screen::showWorkScreen() {
- _vm->_system->copyRectToScreen((const byte*)_workScreen->pixels, _workScreen->pitch, 0, 0, _workScreen->w, _workScreen->h);
+ _vm->_system->copyRectToScreen(_workScreen->pixels, _workScreen->pitch, 0, 0, _workScreen->w, _workScreen->h);
}
-void Screen::copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h) {
+void Screen::copyRectToScreen(const void *buf, int pitch, int x, int y, int w, int h) {
_vm->_system->copyRectToScreen(buf, pitch, x, y, w, h);
}