diff options
author | Martin Kiewitz | 2010-02-04 19:22:40 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-04 19:22:40 +0000 |
commit | 3ce2e229786f1ce81935883ed934d14fbc3444f7 (patch) | |
tree | 599c1b816d48c2cad73cb5b4accb150de4c0e6cc /engines/sci/graphics/paint32.cpp | |
parent | 5dc8f75b68a95e4c6f69921c29d773e902022708 (diff) | |
download | scummvm-rg350-3ce2e229786f1ce81935883ed934d14fbc3444f7.tar.gz scummvm-rg350-3ce2e229786f1ce81935883ed934d14fbc3444f7.tar.bz2 scummvm-rg350-3ce2e229786f1ce81935883ed934d14fbc3444f7.zip |
SCI: adding GfxPaint class, implementing kernelDrawPicture for GfxPaint16 and GfxPaint32, using those classes directly when drawing pictures instead of SciGui/32. Making draw_pic command work in sci32 that way, using _gfxPaint16 for kDrawPic because that command is sci16 exclusive
svn-id: r47883
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index 78f0302f45..1f318319f3 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -56,4 +56,11 @@ void GfxPaint32::fillRect(Common::Rect rect, byte color) { } } +void GfxPaint32::kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo) { + SciGuiPicture *picture = new SciGuiPicture(_resMan, 0, _screen, _palette, pictureId, false); + + picture->draw(animationNr, mirroredFlag, addToFlag, EGApaletteNo); + delete picture; +} + } // End of namespace Sci |