aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/gui32.cpp
diff options
context:
space:
mode:
authorMax Horn2010-02-13 17:44:19 +0000
committerMax Horn2010-02-13 17:44:19 +0000
commita82939c9bee20f2969f1006c1c9a836cea5c7903 (patch)
tree1d09caf84f1b1d7787b539952cd739f66383c68d /engines/sci/graphics/gui32.cpp
parent721a57a66101d63bc05e294c24190ba66ccceb74 (diff)
downloadscummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.tar.gz
scummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.tar.bz2
scummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.zip
SCI: Get rid of EngineState::resMan
svn-id: r48048
Diffstat (limited to 'engines/sci/graphics/gui32.cpp')
-rw-r--r--engines/sci/graphics/gui32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/gui32.cpp b/engines/sci/graphics/gui32.cpp
index adc2c3a4e1..80454378d5 100644
--- a/engines/sci/graphics/gui32.cpp
+++ b/engines/sci/graphics/gui32.cpp
@@ -54,9 +54,9 @@ SciGui32::SciGui32(EngineState *state, GfxScreen *screen, GfxPalette *palette, G
_cursor->init(_coordAdjuster, _s->_event);
_compare = new GfxCompare(_s->_segMan, _s->_kernel, _cache, _screen, _coordAdjuster);
g_sci->_gfxCompare = _compare;
- _paint32 = new GfxPaint32(_s->resMan, _s->_segMan, _s->_kernel, _coordAdjuster, _cache, _screen, _palette);
+ _paint32 = new GfxPaint32(g_sci->getResMan(), _s->_segMan, _s->_kernel, _coordAdjuster, _cache, _screen, _palette);
g_sci->_gfxPaint = _paint32;
- _frameout = new GfxFrameout(_s->_segMan, _s->resMan, _coordAdjuster, _cache, _screen, _palette, _paint32);
+ _frameout = new GfxFrameout(_s->_segMan, g_sci->getResMan(), _coordAdjuster, _cache, _screen, _palette, _paint32);
g_sci->_gfxFrameout = _frameout;
}
@@ -80,7 +80,7 @@ void SciGui32::textSize(const char *text, int16 font, int16 maxWidth, int16 *tex
}
void SciGui32::drawRobot(GuiResourceId robotId) {
- Robot *test = new Robot(_s->resMan, _screen, robotId);
+ Robot *test = new Robot(g_sci->getResMan(), _screen, robotId);
test->draw();
delete test;
}