diff options
Diffstat (limited to 'src/LineMarker.h')
-rw-r--r-- | src/LineMarker.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/LineMarker.h b/src/LineMarker.h index 39c38fa41..722c44b62 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -25,6 +25,7 @@ public: ColourPair backSelected; int alpha; XPM *pxpm; + RGBAImage *image; LineMarker() { markType = SC_MARK_CIRCLE; fore = ColourDesired(0,0,0); @@ -32,6 +33,7 @@ public: backSelected = ColourDesired(0xff,0x00,0x00); alpha = SC_ALPHA_NOALPHA; pxpm = NULL; + image = NULL; } LineMarker(const LineMarker &) { // Defined to avoid pxpm being blindly copied, not as real copy constructor @@ -41,9 +43,11 @@ public: backSelected = ColourDesired(0xff,0x00,0x00); alpha = SC_ALPHA_NOALPHA; pxpm = NULL; + image = NULL; } ~LineMarker() { delete pxpm; + delete image; } LineMarker &operator=(const LineMarker &) { // Defined to avoid pxpm being blindly copied, not as real assignment operator @@ -54,11 +58,14 @@ public: alpha = SC_ALPHA_NOALPHA; delete pxpm; pxpm = NULL; + delete image; + image = NULL; return *this; } void RefreshColourPalette(Palette &pal, bool want); void SetXPM(const char *textForm); void SetXPM(const char *const *linesForm); + void SetRGBAImage(Point sizeRGBAImage, const unsigned char *pixelsRGBAImage); void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter, typeOfFold tFold); }; |