From 99111f0ffd9038e23b16114daed582d8b64a30a7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 9 Oct 2009 21:49:04 +0000 Subject: SCI: Fix some weird casting in the vectorPatternCircle and vectorPatternTexturedCircle svn-id: r44851 --- engines/sci/gui/gui_picture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/gui') 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]]; -- cgit v1.2.3