diff options
author | md5 | 2011-02-26 19:07:31 +0200 |
---|---|---|
committer | md5 | 2011-02-26 19:07:31 +0200 |
commit | fe04339909ad9a78cd49a057d3188cc5f54aa713 (patch) | |
tree | 977e0a59501256ccc586af5253fe3d78acf64b3c /engines/sci/graphics/paint32.cpp | |
parent | ab256842e4a23acf8de28ea5e74344d47677d029 (diff) | |
download | scummvm-rg350-fe04339909ad9a78cd49a057d3188cc5f54aa713.tar.gz scummvm-rg350-fe04339909ad9a78cd49a057d3188cc5f54aa713.tar.bz2 scummvm-rg350-fe04339909ad9a78cd49a057d3188cc5f54aa713.zip |
SCI: Removed the SCI32 version of kernelDrawCel() and placed its code inside the debug function cmdDrawCel, as it was hacked together to be used specifically in that command (thanks to salty-horse for spotting this)
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index aa3bf8dfb3..69a278eb8b 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -65,17 +65,6 @@ 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) { - GfxView *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); -} - void GfxPaint32::kernelGraphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) { _screen->drawLine(startPoint.x, startPoint.y, endPoint.x, endPoint.y, color, priority, control); } |