From 3ce2e229786f1ce81935883ed934d14fbc3444f7 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 4 Feb 2010 19:22:40 +0000 Subject: 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 --- engines/sci/graphics/paint32.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/sci/graphics/paint32.h') diff --git a/engines/sci/graphics/paint32.h b/engines/sci/graphics/paint32.h index 7ee9eacf72..8b675d0cf7 100644 --- a/engines/sci/graphics/paint32.h +++ b/engines/sci/graphics/paint32.h @@ -27,6 +27,7 @@ #define SCI_GRAPHICS_PAINT32_H #include "sci/graphics/gui.h" +#include "sci/graphics/paint.h" #include "common/hashmap.h" @@ -34,13 +35,15 @@ namespace Sci { class GfxPorts; -class GfxPaint32 { +class GfxPaint32 : public GfxPaint { public: GfxPaint32(ResourceManager *resMan, SegManager *segMan, Kernel *kernel, GfxCache *cache, GfxScreen *screen, GfxPalette *palette); ~GfxPaint32(); void fillRect(Common::Rect rect, byte color); + void kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo); + private: ResourceManager *_resMan; SegManager *_segMan; -- cgit v1.2.3