void GfxPaint16::drawPicture(GuiResourceId pictureId, int16 animationNr, bool mirroredFlag, bool addToFlag, GuiResourceId paletteId) { GfxPicture *picture = new GfxPicture(_resMan, _coordAdjuster, _ports, _screen, _palette, pictureId, _EGAdrawingVisualize); // do we add to a picture? if not -> clear screen with white if (!addToFlag) clearScreen(_screen->getColorWhite()); picture->draw(animationNr, mirroredFlag, addToFlag, paletteId); delete picture; // We make a call to SciPalette here, for increasing sys timestamp and also loading targetpalette, if palvary active // (SCI1.1 only) if (getSciVersion() == SCI_VERSION_1_1) _palette->drewPicture(pictureId); }
void GfxPaint32::kernelDrawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo) { GfxPicture *picture = new GfxPicture(_resMan, _coordAdjuster, 0, _screen, _palette, pictureId, false); picture->draw(animationNr, mirroredFlag, addToFlag, EGApaletteNo); delete picture; }