From 99a07142cccf792dd35b611edd1b41cb307b5847 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Sep 2013 22:04:34 +0300 Subject: improve chat emote window draw speed. --- src/gui/widgets/emotepage.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/emotepage.h') diff --git a/src/gui/widgets/emotepage.h b/src/gui/widgets/emotepage.h index 0c2582318..f553fa750 100644 --- a/src/gui/widgets/emotepage.h +++ b/src/gui/widgets/emotepage.h @@ -25,12 +25,14 @@ #include #include +#include #include "localconsts.h" class EmotePage final : public gcn::Widget, public Widget2, - public gcn::MouseListener + public gcn::MouseListener, + public gcn::WidgetListener { public: explicit EmotePage(const Widget2 *const widget); @@ -45,6 +47,10 @@ class EmotePage final : public gcn::Widget, int getIndexFromGrid(const int x, const int y) const; + void widgetResized(const gcn::Event &event A_UNUSED); + + void widgetMoved(const gcn::Event &event A_UNUSED); + void resetAction(); int getSelectedIndex() @@ -52,7 +58,9 @@ class EmotePage final : public gcn::Widget, private: ImageSet *mEmotes; + ImageCollection *mVertexes; int mSelectedIndex; + bool mRedraw; }; #endif // GUI_WIDGETS_EMOTEPAGE_H -- cgit v1.2.3-70-g09d2