diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch')
-rw-r--r-- | dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch b/dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch new file mode 100644 index 000000000000..96b6aa712340 --- /dev/null +++ b/dev-games/crystalspace/files/crystalspace-2.0-gcc52.patch @@ -0,0 +1,53 @@ +--- a/include/csgfx/imagememory.h.old 2016-04-17 09:09:31.497152401 +0200 ++++ b/include/csgfx/imagememory.h 2016-04-17 09:12:13.838355158 +0200 +@@ -179,8 +179,8 @@ + /// Get a pointer to the alpha data that can be changed. + uint8* GetAlphaPtr (); + +- virtual const void* GetImageData () { return GetImagePtr (); } +- virtual int GetWidth () const { return Width; } ++ virtual const void* GetImageData (); ++ virtual int GetWidth () const; + virtual int GetHeight () const { return Height; } + virtual int GetDepth () const { return Depth; } + +--- a/libs/csgfx/imagememory.cpp.old 2016-04-17 09:07:19.555451540 +0200 ++++ b/libs/csgfx/imagememory.cpp 2016-04-17 09:13:09.339398463 +0200 +@@ -208,6 +208,23 @@ + EnsureImage(); + return (void*)databuf->GetData (); + } ++ ++const void* csImageMemory::GetImageData () ++{ ++ return GetImagePtr (); ++} ++ ++int csImageMemory::GetWidth () const ++{ ++ return Width; ++} ++ ++void csImageBase::SetName (const char* iName) ++{ ++ cs_free (fName); ++ fName = CS::StrDup (iName); ++} ++ + csRGBpixel* csImageMemory::GetPalettePtr () + { + EnsureImage(); +--- a/include/csgfx/imagebase.h.old 2016-04-17 09:59:09.211101864 +0200 ++++ b/include/csgfx/imagebase.h 2016-04-17 09:59:20.041919599 +0200 +@@ -61,10 +61,7 @@ + // Most images are 2D, so provide a sensible default + virtual int GetDepth () const { return 1; } + +- virtual void SetName (const char* iName) +- { +- cs_free (fName); fName = CS::StrDup (iName); +- } ++ virtual void SetName (const char* iName); + virtual const char* GetName () const { return fName; } + + /* Commented out: should be implemented by all descendants. |