aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/paint32.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-06 19:35:51 +0000
committerMartin Kiewitz2010-02-06 19:35:51 +0000
commit4cae2b13e2acbd81e4b726f1e409c5615eda7967 (patch)
treeb6eeaaf0887ef616347a059a0d9ebd9526e30a5e /engines/sci/graphics/paint32.cpp
parentcf1b03f694740203901924ea66d004d26e461e0b (diff)
downloadscummvm-rg350-4cae2b13e2acbd81e4b726f1e409c5615eda7967.tar.gz
scummvm-rg350-4cae2b13e2acbd81e4b726f1e409c5615eda7967.tar.bz2
scummvm-rg350-4cae2b13e2acbd81e4b726f1e409c5615eda7967.zip
SCI: added plane coordinate adjustment code for sci32 when drawing pictures, put everything into GfxCoordAdjuster
svn-id: r47939
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r--engines/sci/graphics/paint32.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp
index 8d15970063..c0811298bb 100644
--- a/engines/sci/graphics/paint32.cpp
+++ b/engines/sci/graphics/paint32.cpp
@@ -30,6 +30,7 @@
#include "sci/sci.h"
#include "sci/engine/state.h"
#include "sci/engine/selector.h"
+#include "sci/graphics/coordadjuster.h"
#include "sci/graphics/cache.h"
#include "sci/graphics/paint32.h"
#include "sci/graphics/font.h"
@@ -40,8 +41,8 @@
namespace Sci {
-GfxPaint32::GfxPaint32(ResourceManager *resMan, SegManager *segMan, Kernel *kernel, GfxCache *cache, GfxScreen *screen, GfxPalette *palette)
- : _resMan(resMan), _segMan(segMan), _kernel(kernel), _cache(cache), _screen(screen), _palette(palette) {
+GfxPaint32::GfxPaint32(ResourceManager *resMan, SegManager *segMan, Kernel *kernel, GfxCoordAdjuster *coordAdjuster, GfxCache *cache, GfxScreen *screen, GfxPalette *palette)
+ : _resMan(resMan), _segMan(segMan), _kernel(kernel), _coordAdjuster(coordAdjuster), _cache(cache), _screen(screen), _palette(palette) {
}
GfxPaint32::~GfxPaint32() {
@@ -57,7 +58,7 @@ void GfxPaint32::fillRect(Common::Rect rect, byte color) {
}
void GfxPaint32::kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo) {
- GfxPicture *picture = new GfxPicture(_resMan, 0, _screen, _palette, pictureId, false);
+ GfxPicture *picture = new GfxPicture(_resMan, _coordAdjuster, 0, _screen, _palette, pictureId, false);
picture->draw(animationNr, mirroredFlag, addToFlag, EGApaletteNo);
delete picture;