summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.cpp14
-rw-r--r--src/gui/widgets/shortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/shortcutcontainer.h2
3 files changed, 0 insertions, 18 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp
index 689f39d0c..10ef44f6a 100644
--- a/src/gui/widgets/emoteshortcutcontainer.cpp
+++ b/src/gui/widgets/emoteshortcutcontainer.cpp
@@ -139,20 +139,6 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics)
}
}
- if (mEmoteMoved && mEmoteMoved < static_cast<unsigned>(sz) + 1
- && mEmoteMoved > 0)
- {
- // Draw the emote image being dragged by the cursor.
- const EmoteSprite *const sprite = mEmoteImg[mEmoteMoved - 1];
- if (sprite && sprite->sprite)
- {
- const AnimatedSprite *const spr = sprite->sprite;
- const int tPosX = mCursorPosX - (spr->getWidth() / 2);
- const int tPosY = mCursorPosY - (spr->getHeight() / 2);
-
- spr->draw(g, tPosX, tPosY);
- }
- }
BLOCK_END("EmoteShortcutContainer::draw")
}
diff --git a/src/gui/widgets/shortcutcontainer.cpp b/src/gui/widgets/shortcutcontainer.cpp
index 89b5c1c14..ed3c32f04 100644
--- a/src/gui/widgets/shortcutcontainer.cpp
+++ b/src/gui/widgets/shortcutcontainer.cpp
@@ -40,8 +40,6 @@ ShortcutContainer::ShortcutContainer() :
mMaxItems(0),
mBoxWidth(1),
mBoxHeight(1),
- mCursorPosX(0),
- mCursorPosY(0),
mGridWidth(1),
mGridHeight(1),
mVertexes(new ImageCollection),
diff --git a/src/gui/widgets/shortcutcontainer.h b/src/gui/widgets/shortcutcontainer.h
index c714ab0ad..7be34b174 100644
--- a/src/gui/widgets/shortcutcontainer.h
+++ b/src/gui/widgets/shortcutcontainer.h
@@ -114,8 +114,6 @@ class ShortcutContainer : public gcn::Widget,
unsigned mMaxItems;
int mBoxWidth;
int mBoxHeight;
- int mCursorPosX;
- int mCursorPosY;
int mGridWidth;
int mGridHeight;
ImageCollection *mVertexes;