aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/paint32.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-04 20:02:48 +0000
committerMartin Kiewitz2010-02-04 20:02:48 +0000
commitfb494493225cb490f4ed173774208b377e35c692 (patch)
treebd8f0cb44a96c7c22093a289b97fb010c264056f /engines/sci/graphics/paint32.cpp
parent21cfb4c0c7ee9ec3e833beb47a7ecd5d8494b862 (diff)
downloadscummvm-rg350-fb494493225cb490f4ed173774208b377e35c692.tar.gz
scummvm-rg350-fb494493225cb490f4ed173774208b377e35c692.tar.bz2
scummvm-rg350-fb494493225cb490f4ed173774208b377e35c692.zip
SCI: putting kDrawCel info GfxPaint class, debug is using GfxPaint class as well for drawing cels
svn-id: r47885
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r--engines/sci/graphics/paint32.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp
index 1f318319f3..88f413e9b4 100644
--- a/engines/sci/graphics/paint32.cpp
+++ b/engines/sci/graphics/paint32.cpp
@@ -63,4 +63,15 @@ void GfxPaint32::kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, b
delete picture;
}
+// This is "hacked" together, because its only used by debug command
+void GfxPaint32::kernelDrawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo, bool hiresMode, reg_t upscaledHiresHandle) {
+ View *view = _cache->getView(viewId);
+ Common::Rect celRect(50, 50, 50, 50);
+ Common::Rect translatedRect;
+ celRect.bottom += view->getHeight(loopNo, celNo);
+ celRect.right += view->getWidth(loopNo, celNo);
+ view->draw(celRect, celRect, celRect, loopNo, celNo, 255, 0, false);
+ _screen->copyRectToScreen(celRect);
+}
+
} // End of namespace Sci