aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/maciconbar.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 02:36:17 +0200
committerJohannes Schickel2012-06-16 02:39:00 +0200
commit084c1259fc5c185ec66001708f623d03675bf6f5 (patch)
treebd522111168593ea5739c61ecb1d97773923379a /engines/sci/graphics/maciconbar.cpp
parentebb5cb7e4c6266e99382792f6c3d65868f5bc5e9 (diff)
downloadscummvm-rg350-084c1259fc5c185ec66001708f623d03675bf6f5.tar.gz
scummvm-rg350-084c1259fc5c185ec66001708f623d03675bf6f5.tar.bz2
scummvm-rg350-084c1259fc5c185ec66001708f623d03675bf6f5.zip
SCI: Get rid of casts on OSystem::copyRectToScreen calls.
Diffstat (limited to 'engines/sci/graphics/maciconbar.cpp')
-rw-r--r--engines/sci/graphics/maciconbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/maciconbar.cpp b/engines/sci/graphics/maciconbar.cpp
index 7ecba5a24d..dfb50b0edb 100644
--- a/engines/sci/graphics/maciconbar.cpp
+++ b/engines/sci/graphics/maciconbar.cpp
@@ -129,7 +129,7 @@ void GfxMacIconBar::drawIcon(uint16 iconIndex, bool selected) {
void GfxMacIconBar::drawEnabledImage(Graphics::Surface *surface, const Common::Rect &rect) {
if (surface)
- g_system->copyRectToScreen((byte *)surface->pixels, surface->pitch, rect.left, rect.top, rect.width(), rect.height());
+ g_system->copyRectToScreen(surface->pixels, surface->pitch, rect.left, rect.top, rect.width(), rect.height());
}
void GfxMacIconBar::drawDisabledImage(Graphics::Surface *surface, const Common::Rect &rect) {
@@ -153,7 +153,7 @@ void GfxMacIconBar::drawDisabledImage(Graphics::Surface *surface, const Common::
*((byte *)newSurf.getBasePtr(j, i)) = 0;
}
- g_system->copyRectToScreen((byte *)newSurf.pixels, newSurf.pitch, rect.left, rect.top, rect.width(), rect.height());
+ g_system->copyRectToScreen(newSurf.pixels, newSurf.pitch, rect.left, rect.top, rect.width(), rect.height());
newSurf.free();
}