Skip to content

Commit

Permalink
SCUMM: Remove temporary Loom Mac GUI variables that were only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjörn Andersson committed Nov 9, 2023
1 parent eefd251 commit 35669a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engines/scumm/gfx_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3478,14 +3478,11 @@ ::createFormatCLUT8());
if (_practiceBox) {
debug(1, "MacLoomGui: Deleting practice mode box");

int w = _practiceBox->w;
int h = _practiceBox->h;

_practiceBox->free();
delete _practiceBox;
_practiceBox = nullptr;

_system->copyRectToScreen(_surface->getBasePtr(_practiceBoxPos.x, _practiceBoxPos.y), _surface->pitch, _practiceBoxPos.x, _practiceBoxPos.y, w, h);
_system->copyRectToScreen(_surface->getBasePtr(_practiceBoxPos.x, _practiceBoxPos.y), _surface->pitch, _practiceBoxPos.x, _practiceBoxPos.y, _practiceBox->w, _practiceBox->h);
}
}
}
Expand Down

0 comments on commit 35669a2

Please sign in to comment.