From a82939c9bee20f2969f1006c1c9a836cea5c7903 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 13 Feb 2010 17:44:19 +0000 Subject: SCI: Get rid of EngineState::resMan svn-id: r48048 --- engines/sci/graphics/gui32.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/graphics/gui32.cpp') 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; } -- cgit v1.2.3