diff options
author | Max Horn | 2009-10-09 21:49:04 +0000 |
---|---|---|
committer | Max Horn | 2009-10-09 21:49:04 +0000 |
commit | 99111f0ffd9038e23b16114daed582d8b64a30a7 (patch) | |
tree | 73a784806e4b17e522c1129208d50ed2d51c3797 /engines/sci/gui | |
parent | 2e964baeef9a74d45090583b52419afa3c9c47bf (diff) | |
download | scummvm-rg350-99111f0ffd9038e23b16114daed582d8b64a30a7.tar.gz scummvm-rg350-99111f0ffd9038e23b16114daed582d8b64a30a7.tar.bz2 scummvm-rg350-99111f0ffd9038e23b16114daed582d8b64a30a7.zip |
SCI: Fix some weird casting in the vectorPatternCircle and vectorPatternTexturedCircle
svn-id: r44851
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui_picture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp index d8fa63954d..80f1df1c00 100644 --- a/engines/sci/gui/gui_picture.cpp +++ b/engines/sci/gui/gui_picture.cpp @@ -780,7 +780,7 @@ void SciGuiPicture::vectorPatternTexturedBox(Common::Rect box, byte color, byte void SciGuiPicture::vectorPatternCircle(Common::Rect box, byte size, byte color, byte prio, byte control) { byte flag = _screen->getDrawingMask(color, prio, control); - byte *circleData = (byte *)&vectorPatternCircles[size]; + const byte *circleData = vectorPatternCircles[size]; byte bitmap = *circleData; byte bitNo = 0; int y, x; @@ -802,7 +802,7 @@ void SciGuiPicture::vectorPatternCircle(Common::Rect box, byte size, byte color, void SciGuiPicture::vectorPatternTexturedCircle(Common::Rect box, byte size, byte color, byte prio, byte control, byte texture) { byte flag = _screen->getDrawingMask(color, prio, control); - byte *circleData = (byte *)&vectorPatternCircles[size]; + const byte *circleData = vectorPatternCircles[size]; byte bitmap = *circleData; byte bitNo = 0; const bool *textureData = &vectorPatternTextures[vectorPatternTextureOffset[texture]]; |