diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-12-17 16:42:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-12-17 16:42:27 +0300 |
commit | ba997be747666c74c46c734cb636a8de84c582b3 (patch) | |
tree | 1596c7bede896dce8d5cc6ba4c887dbeb4a2a300 /src/actorsprite.cpp | |
parent | 32973f167f9a6f49957ea6a2cce119d91f997b3b (diff) | |
download | plus-ba997be747666c74c46c734cb636a8de84c582b3.tar.gz plus-ba997be747666c74c46c734cb636a8de84c582b3.tar.bz2 plus-ba997be747666c74c46c734cb636a8de84c582b3.tar.xz plus-ba997be747666c74c46c734cb636a8de84c582b3.zip |
Move target cursors to themes.
Remove old unused target cursors.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index 2a92cf506..a0fafbbf9 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -437,7 +437,7 @@ static const char *cursorSize(int size) void ActorSprite::initTargetCursor() { - static std::string targetCursorFile = "graphics/target-cursor-%s-%s.png"; + static std::string targetCursorFile = "target-cursor-%s-%s.png"; static int targetWidths[NUM_TC] = {44, 62, 82}; static int targetHeights[NUM_TC] = {35, 44, 60}; @@ -479,8 +479,8 @@ void ActorSprite::loadTargetCursor(const std::string &filename, if (size < TC_SMALL || size >= NUM_TC) return; - ResourceManager *resman = ResourceManager::getInstance(); - ImageSet *currentImageSet = resman->getImageSet(filename, width, height); + ImageSet *currentImageSet = Theme::getImageSetFromTheme( + filename, width, height); if (!currentImageSet) { |