diff --git a/engines/tinsel/background.cpp b/engines/tinsel/background.cpp index a5b7198691e..4f0623df6a1 100644 --- a/engines/tinsel/background.cpp +++ b/engines/tinsel/background.cpp @@ -162,7 +162,7 @@ OBJECT *GetPlayfieldList(int which) { pPlayfield = pCurBgnd->fieldArray + which; // return the display list pointer for this playfield - return pPlayfield->pDispList; + return (OBJECT *)&pPlayfield->pDispList; } /** @@ -202,10 +202,10 @@ void DrawBackgnd() { pPlay->bMoved = true; // sort the display list for this background - just in case somebody has changed object Z positions - SortObjectList(pPlay->pDispList); + SortObjectList((OBJECT *)&pPlay->pDispList); // generate clipping rects for all objects that have moved etc. - FindMovingObjects(pPlay->pDispList, &ptWin, + FindMovingObjects((OBJECT *)&pPlay->pDispList, &ptWin, &pPlay->rcClip, false, pPlay->bMoved); // clear playfield moved flag @@ -232,7 +232,7 @@ void DrawBackgnd() { if (IntersectRectangle(rcPlayClip, pPlay->rcClip, *r)) // redraw all objects within this clipping rect - UpdateClipRect(pPlay->pDispList, + UpdateClipRect((OBJECT *)&pPlay->pDispList, &ptWin, &rcPlayClip); } }