Skip to content

Commit

Permalink
SCI32: Remove unused ResourceManager from GfxFrameout
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Aug 19, 2016
1 parent dc09374 commit da62a99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions engines/sci/graphics/frameout.cpp
Expand Up @@ -57,11 +57,10 @@

namespace Sci {

GfxFrameout::GfxFrameout(SegManager *segMan, ResourceManager *resMan, GfxPalette32 *palette, GfxTransitions32 *transitions, GfxCursor32 *cursor) :
GfxFrameout::GfxFrameout(SegManager *segMan, GfxPalette32 *palette, GfxTransitions32 *transitions, GfxCursor32 *cursor) :
_isHiRes(ConfMan.getBool("enable_high_resolution_graphics")),
_palette(palette),
_cursor(cursor),
_resMan(resMan),
_segMan(segMan),
_transitions(transitions),
_benchmarkingFinished(false),
Expand Down
3 changes: 1 addition & 2 deletions engines/sci/graphics/frameout.h
Expand Up @@ -42,11 +42,10 @@ class GfxFrameout {
private:
GfxCursor32 *_cursor;
GfxPalette32 *_palette;
ResourceManager *_resMan;
SegManager *_segMan;

public:
GfxFrameout(SegManager *segMan, ResourceManager *resMan, GfxPalette32 *palette, GfxTransitions32 *transitions, GfxCursor32 *cursor);
GfxFrameout(SegManager *segMan, GfxPalette32 *palette, GfxTransitions32 *transitions, GfxCursor32 *cursor);
~GfxFrameout();

bool _isHiRes;
Expand Down
2 changes: 1 addition & 1 deletion engines/sci/sci.cpp
Expand Up @@ -736,7 +736,7 @@ void SciEngine::initGraphics() {
_gfxCompare = new GfxCompare(_gamestate->_segMan, _gfxCache, nullptr, _gfxCoordAdjuster);
_gfxPaint32 = new GfxPaint32(_gamestate->_segMan);
_gfxTransitions32 = new GfxTransitions32(_gamestate->_segMan);
_gfxFrameout = new GfxFrameout(_gamestate->_segMan, _resMan, _gfxPalette32, _gfxTransitions32, _gfxCursor32);
_gfxFrameout = new GfxFrameout(_gamestate->_segMan, _gfxPalette32, _gfxTransitions32, _gfxCursor32);
_gfxCursor32->init(_gfxFrameout->getCurrentBuffer());
_gfxText32 = new GfxText32(_gamestate->_segMan, _gfxCache);
_gfxControls32 = new GfxControls32(_gamestate->_segMan, _gfxCache, _gfxText32);
Expand Down

0 comments on commit da62a99

Please sign in to comment.