diff options
author | Martin Kiewitz | 2010-02-04 20:43:00 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-04 20:43:00 +0000 |
commit | 00ac235331bcffc19fbc96dc973e876085f2db93 (patch) | |
tree | 962af01ff3e6a05d5688d97951c8108847ea892b /engines/sci/graphics | |
parent | e74bd30a2e249598b6ec8ec1cb6c03fd95797ddc (diff) | |
download | scummvm-rg350-00ac235331bcffc19fbc96dc973e876085f2db93.tar.gz scummvm-rg350-00ac235331bcffc19fbc96dc973e876085f2db93.tar.bz2 scummvm-rg350-00ac235331bcffc19fbc96dc973e876085f2db93.zip |
SCI: making pathfinding debug support also work in sci32 (though it just shows the path for 2.5 seconds there)
svn-id: r47888
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/paint.cpp | 3 | ||||
-rw-r--r-- | engines/sci/graphics/paint.h | 1 | ||||
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 4 | ||||
-rw-r--r-- | engines/sci/graphics/paint32.h | 1 |
4 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/graphics/paint.cpp b/engines/sci/graphics/paint.cpp index 674d7fb2e1..50b0534ba7 100644 --- a/engines/sci/graphics/paint.cpp +++ b/engines/sci/graphics/paint.cpp @@ -46,4 +46,7 @@ void GfxPaint::kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, boo void GfxPaint::kernelDrawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo, bool hiresMode, reg_t upscaledHiresHandle) { } +void GfxPaint::kernelGraphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) { +} + } // End of namespace Sci diff --git a/engines/sci/graphics/paint.h b/engines/sci/graphics/paint.h index d569730639..918e8d3046 100644 --- a/engines/sci/graphics/paint.h +++ b/engines/sci/graphics/paint.h @@ -39,6 +39,7 @@ public: virtual void kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo); virtual void kernelDrawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo, bool hiresMode, reg_t upscaledHiresHandle); + virtual void kernelGraphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control); private: }; diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index 88f413e9b4..55b88ecb4b 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -74,4 +74,8 @@ void GfxPaint32::kernelDrawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, _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); +} + } // End of namespace Sci diff --git a/engines/sci/graphics/paint32.h b/engines/sci/graphics/paint32.h index 64ec3fa948..c158075326 100644 --- a/engines/sci/graphics/paint32.h +++ b/engines/sci/graphics/paint32.h @@ -44,6 +44,7 @@ public: void kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo); void kernelDrawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo, bool hiresMode, reg_t upscaledHiresHandle); + void kernelGraphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control); private: ResourceManager *_resMan; |