summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-17 16:42:27 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-17 16:42:27 +0300
commitba997be747666c74c46c734cb636a8de84c582b3 (patch)
tree1596c7bede896dce8d5cc6ba4c887dbeb4a2a300 /src/actorsprite.cpp
parent32973f167f9a6f49957ea6a2cce119d91f997b3b (diff)
downloadplus-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.cpp6
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)
{