Fix the compile error in tflash.h

Member functions with argument of vector<TSegment> or vector<TQuadratic> cannot be inline defined.
This commit is contained in:
kusano 2016-03-24 00:43:29 +09:00
parent e40e2eea0a
commit a0ab5dec40
2 changed files with 15 additions and 2 deletions

View file

@ -221,6 +221,19 @@ void computeOutlineBoundary(vector<TStroke *> &outlines, list<FlashPolyline> &po
//-------------------------------------------------------------------
// TFlash::drawSegments and TFlash::drawquads cannot be inline defined
// since size of TSegment and TQuadratic are unkown in the header
void TFlash::drawSegments(const vector<TSegment> segmentArray, bool isGradientColor)
{
}
void TFlash::drawquads(const vector<TQuadratic> quadsArray)
{
}
//-------------------------------------------------------------------
bool PolyStyle::operator==(const PolyStyle &p) const
{
if (m_type != p.m_type)

View file

@ -78,8 +78,8 @@ public:
void drawRegion(const TRegion &r, int clippedShapes = 0) {}
void drawCenterline(const TStroke *s, bool drawAll) {}
bool drawOutline(TStroke *s) { return false; }
void drawSegments(const vector<TSegment> segmentArray, bool isGradientColor) {}
void drawquads(const vector<TQuadratic> quadsArray) {}
void drawSegments(const vector<TSegment> segmentArray, bool isGradientColor);
void drawquads(const vector<TQuadratic> quadsArray);
USHORT buildImage(const TImageP img, bool isMask) { return 0; }
void draw(const TImageP vi, const TColorFunction *cf) {}
void beginFrame(int frameIndex) {}