diff options
author | Max Horn | 2011-05-10 12:34:24 +0200 |
---|---|---|
committer | Max Horn | 2011-05-10 14:43:53 +0200 |
commit | 43ca9c86ab56eef3b7a9d3db6cde975d3eb3f60a (patch) | |
tree | abadd618be28824745c9f6fc32d4f74b8ae6bd45 | |
parent | b22ca4ffe8c42ccc0f5390899b671e31e6511d46 (diff) | |
download | scummvm-rg350-43ca9c86ab56eef3b7a9d3db6cde975d3eb3f60a.tar.gz scummvm-rg350-43ca9c86ab56eef3b7a9d3db6cde975d3eb3f60a.tar.bz2 scummvm-rg350-43ca9c86ab56eef3b7a9d3db6cde975d3eb3f60a.zip |
TINSEL: Remove unnecessary casts
-rw-r--r-- | engines/tinsel/background.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/background.cpp b/engines/tinsel/background.cpp index dfff093c09..79f051420b 100644 --- a/engines/tinsel/background.cpp +++ b/engines/tinsel/background.cpp @@ -165,7 +165,7 @@ OBJECT *GetPlayfieldList(int which) { pPlayfield = pCurBgnd->fieldArray + which; // return the display list pointer for this playfield - return (OBJECT *)&pPlayfield->pDispList; + return pPlayfield->pDispList; } /** @@ -205,10 +205,10 @@ void DrawBackgnd() { pPlay->bMoved = true; // sort the display list for this background - just in case somebody has changed object Z positions - SortObjectList((OBJECT *)&pPlay->pDispList); + SortObjectList(pPlay->pDispList); // generate clipping rects for all objects that have moved etc. - FindMovingObjects((OBJECT *)&pPlay->pDispList, &ptWin, + FindMovingObjects(pPlay->pDispList, &ptWin, &pPlay->rcClip, false, pPlay->bMoved); // clear playfield moved flag @@ -235,7 +235,7 @@ void DrawBackgnd() { if (IntersectRectangle(rcPlayClip, pPlay->rcClip, *r)) // redraw all objects within this clipping rect - UpdateClipRect((OBJECT *)&pPlay->pDispList, + UpdateClipRect(pPlay->pDispList, &ptWin, &rcPlayClip); } } |