summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 21:57:09 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 21:57:09 +0100
commit9f2a8799eea3d609a3863a7732ec280d83f12e47 (patch)
tree719f9e8703211937fc2452055c7a8d5be05bd2f8 /src/resources
parent53840c3fe951c77fa7965efcac4ed77b52da14d9 (diff)
parenta8a992ade40c9d68c9faec1cc3a54e7f064fb9d5 (diff)
downloadmana-9f2a8799eea3d609a3863a7732ec280d83f12e47.tar.gz
mana-9f2a8799eea3d609a3863a7732ec280d83f12e47.tar.bz2
mana-9f2a8799eea3d609a3863a7732ec280d83f12e47.tar.xz
mana-9f2a8799eea3d609a3863a7732ec280d83f12e47.zip
Merge branch 'aethyra/master'
Conflicts: docs/FAQ.txt packaging/windows/make-translations.vbs src/Makefile.am src/gui/colour.cpp src/gui/colour.h src/gui/popupmenu.cpp src/gui/setup_colours.h src/main.cpp src/main.h src/resources/resourcemanager.cpp src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/image.h12
-rw-r--r--src/resources/resourcemanager.cpp2
2 files changed, 1 insertions, 13 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 9af10fda..fe3081ac 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -94,12 +94,6 @@ class Image : public Resource
virtual void unload();
/**
- * Returns the image.
- */
- virtual const Image* getImage() const
- { return this; }
-
- /**
* Returns the width of the image.
*/
virtual int getWidth() const
@@ -189,12 +183,6 @@ class SubImage : public Image
~SubImage();
/**
- * Returns the image.
- */
- virtual const Image* getImage() const
- { return mParent; }
-
- /**
* Creates a new image with the desired clipping rectangle.
*
* @return <code>NULL</code> if creation failed and a valid
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 3f58076e..d005c212 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -207,7 +207,7 @@ std::string ResourceManager::getPath(const std::string &file)
else
{
// if not found in search path return the default path
- path = std::string(TMW_DATADIR) + std::string("data") + "/" + file;
+ path = std::string(PKG_DATADIR) + std::string("data") + "/" + file;
}
return path;