SCI32: Remove CoordAdjuster32, at least for the moment
This may come back in the future to deduplicate some gfx code, but SCI32 had two different inlined ways of doing coordinate conversions with different rounding methods, so CoordAdjuster32 didn't get used when the graphics system was rewritten. At the moment, SCI32 code uses the mulru/mulinc methods from helper.h for scaling up/down coordinates.
This commit is contained in:
parent
eae6891404
commit
4e1a9be816
18 changed files with 21 additions and 150 deletions
|
@ -732,12 +732,11 @@ void SciEngine::initGraphics() {
|
|||
#ifdef ENABLE_SCI32
|
||||
if (getSciVersion() >= SCI_VERSION_2) {
|
||||
// SCI32 graphic objects creation
|
||||
_gfxCoordAdjuster = new GfxCoordAdjuster32(_gamestate->_segMan);
|
||||
_gfxCursor32 = new GfxCursor32();
|
||||
_gfxCompare = new GfxCompare(_gamestate->_segMan, _gfxCache, nullptr, _gfxCoordAdjuster);
|
||||
_gfxPaint32 = new GfxPaint32(_gamestate->_segMan);
|
||||
_gfxTransitions32 = new GfxTransitions32(_gamestate->_segMan);
|
||||
_gfxFrameout = new GfxFrameout(_gamestate->_segMan, _resMan, _gfxCoordAdjuster, _gfxPalette32, _gfxTransitions32, _gfxCursor32);
|
||||
_gfxFrameout = new GfxFrameout(_gamestate->_segMan, _resMan, _gfxPalette32, _gfxTransitions32, _gfxCursor32);
|
||||
_gfxCursor32->init(_gfxFrameout->getCurrentBuffer());
|
||||
_gfxText32 = new GfxText32(_gamestate->_segMan, _gfxCache);
|
||||
_gfxControls32 = new GfxControls32(_gamestate->_segMan, _gfxCache, _gfxText32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue